From a18e4373565d245e336fa32ada99994c154aee8c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 2 Jan 2002 11:52:06 +0000 Subject: [PATCH] Fix entry_decode --- servers/slapd/entry.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5