From: Luke Howard Date: Wed, 8 Oct 2003 06:40:16 +0000 (+0000) Subject: Don't duplicate e_bv in entry_dup() X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~606 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79a44ac26e7a4b9c18b6b38e99c87309ed12e7ea;p=openldap Don't duplicate e_bv in entry_dup() --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index b907cd0acd..835089c6e0 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -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; }