From: Howard Chu Date: Wed, 2 Jan 2002 11:52:06 +0000 (+0000) Subject: Fix entry_decode X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~370 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a18e4373565d245e336fa32ada99994c154aee8c;p=openldap Fix entry_decode --- diff --git a/servers/slapd/entry.c b/servers/slapd/entry.c index 08c5fd728d..7b07619693 100644 --- a/servers/slapd/entry.c +++ b/servers/slapd/entry.c @@ -626,7 +626,6 @@ int entry_decode(struct berval *bv, Entry **e) bptr = (BVarray)(a+1); a->a_vals = bptr; j = entry_getlen(&ptr); - a->a_vals[j].bv_val = NULL; while (j) { i = entry_getlen(&ptr); @@ -636,6 +635,9 @@ int entry_decode(struct berval *bv, Entry **e) bptr++; j--; } + bptr->bv_val = NULL; + bptr->bv_len = 0; + bptr++; } if (a) a->a_next = NULL;