From: Howard Chu Date: Mon, 24 Dec 2001 17:37:22 +0000 (+0000) Subject: e_name.bv_len stuff in entry_decode X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~542 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4b948c37b896c5f6b725f4cd8819bec35799ec8;p=openldap e_name.bv_len stuff in entry_decode --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index 4f01dc5c30..a0acd7a33f 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -598,10 +598,12 @@ int entry_decode(struct berval *bv, Entry **e) i = entry_getlen(&ptr); x = ch_malloc(i); i = entry_getlen(&ptr); - x->e_dn = ptr; + x->e_name.bv_val = ptr; + x->e_name.bv_len = i; ptr += i+1; i = entry_getlen(&ptr); - x->e_ndn = ptr; + x->e_nname.bv_val = ptr; + x->e_nname.bv_len = i; ptr += i+1; #ifdef NEW_LOGGING LDAP_LOG(( "operation", LDAP_LEVEL_DETAIL2,