mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix entry_decode
This commit is contained in:
parent
f52cc9bab5
commit
a18e437356
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user