diff options
author | Rich Megginson <rmeggins@redhat.com> | 2010-08-24 10:16:36 -0600 |
---|---|---|
committer | Rich Megginson <rmeggins@redhat.com> | 2010-08-31 13:35:54 -0600 |
commit | ef3d90459a0f43c8e3692cb7ea2cfafe73eb3ba9 (patch) | |
tree | a0d0212ba47296aa1ac063534b00267d6b52e206 /ldap/servers/slapd | |
parent | b4e420b76d9f3189d3c79476177fadfd02421261 (diff) | |
download | ds-ef3d90459a0f43c8e3692cb7ea2cfafe73eb3ba9.tar.gz ds-ef3d90459a0f43c8e3692cb7ea2cfafe73eb3ba9.tar.xz ds-ef3d90459a0f43c8e3692cb7ea2cfafe73eb3ba9.zip |
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
Diffstat (limited to 'ldap/servers/slapd')
-rw-r--r-- | ldap/servers/slapd/ldaputil.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 ); |