]> git.sur5r.net Git - openldap/commitdiff
Don't duplicate e_bv in entry_dup()
authorLuke Howard <lukeh@openldap.org>
Wed, 8 Oct 2003 06:40:16 +0000 (06:40 +0000)
committerLuke Howard <lukeh@openldap.org>
Wed, 8 Oct 2003 06:40:16 +0000 (06:40 +0000)
servers/slapd/entry.c

index b907cd0acd596529f3f969500062c51ef82116b7..835089c6e02878c445f3eb73ae0866d4910ed6f5 100644 (file)
@@ -757,7 +757,8 @@ Entry *entry_dup( Entry *e )
        ber_dupbv( &ret->e_nname, &e->e_nname );
        ret->e_attrs = attrs_dup( e->e_attrs );
        ret->e_ocflags = e->e_ocflags;
-       ber_dupbv( &ret->e_bv, &e->e_bv );
+       ret->e_bv.bv_val = NULL;
+       ret->e_bv.bv_len = 0;
        ret->e_private = NULL;
 }