From b4b948c37b896c5f6b725f4cd8819bec35799ec8 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 24 Dec 2001 17:37:22 +0000 Subject: [PATCH] e_name.bv_len stuff in entry_decode --- servers/slapd/entry.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 2.39.5