From ef3d90459a0f43c8e3692cb7ea2cfafe73eb3ba9 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Tue, 24 Aug 2010 10:16:36 -0600 Subject: move the out pointer back if continuation lines were removed when putting ldif data with the no wrap option, if we removed some continuation lines, we have to move the output data pointer back since the continuation line markers are removed in place --- ldap/servers/slapd/ldaputil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ldap/servers/slapd/ldaputil.c b/ldap/servers/slapd/ldaputil.c index d411d777..d8fe13de 100644 --- a/ldap/servers/slapd/ldaputil.c +++ b/ldap/servers/slapd/ldaputil.c @@ -390,6 +390,7 @@ slapi_ldif_put_type_and_value_with_options( char **out, const char *t, const cha } *dest++ = *src; } + *out = dest; /* move 'out' back if we removed some continuation lines */ } #else ldif_put_type_and_value_with_options( out, (char *)t, (char *)val, vlen, options ); -- cgit