mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix ITS#5136
This commit is contained in:
parent
76974d412a
commit
927efd4a94
@ -718,7 +718,7 @@ ordered_value_add(
|
|||||||
}
|
}
|
||||||
|
|
||||||
new = ch_malloc( (anum+vnum+1) * sizeof(struct berval));
|
new = ch_malloc( (anum+vnum+1) * sizeof(struct berval));
|
||||||
if ( a->a_nvals && a->a_nvals != a->a_vals ) {
|
if ( ( a->a_nvals && a->a_nvals != a->a_vals ) || ( nvals != NULL && nvals != vals ) ) {
|
||||||
nnew = ch_malloc( (anum+vnum+1) * sizeof(struct berval));
|
nnew = ch_malloc( (anum+vnum+1) * sizeof(struct berval));
|
||||||
/* Shouldn't happen... */
|
/* Shouldn't happen... */
|
||||||
if ( !nvals ) nvals = vals;
|
if ( !nvals ) nvals = vals;
|
||||||
|
Loading…
Reference in New Issue
Block a user