mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix entry_decode
This commit is contained in:
parent
f52cc9bab5
commit
a18e437356
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue