فهرست منبع

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
Rich Megginson 15 سال پیش
والد
کامیت
ef3d90459a
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      ldap/servers/slapd/ldaputil.c

+ 1 - 0
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 );