mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-31 20:19:34 -05:00
ITS#303: value_add_fast() empty value bug. Ignore empty value.
This is technical incorrect, but we don't have the codes in place to correctly handle empty values yet.
This commit is contained in:
parent
3a44abba1a
commit
0524589f7f
1 changed files with 2 additions and 2 deletions
|
|
@ -39,10 +39,10 @@ value_add_fast(
|
|||
*maxvals * sizeof(struct berval *) );
|
||||
}
|
||||
|
||||
for ( i = 0, j = 0; i < naddvals; i++, j++ ) {
|
||||
for ( i = 0, j = 0; i < naddvals; i++ ) {
|
||||
if ( addvals[i]->bv_len > 0 ) {
|
||||
(*vals)[nvals + j] = ber_bvdup( addvals[i] );
|
||||
if( (*vals)[nvals + j] == NULL ) break;
|
||||
if( (*vals)[nvals + j] != NULL ) j++;
|
||||
}
|
||||
}
|
||||
(*vals)[nvals + j] = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue