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:
Kurt Zeilenga 1999-09-24 04:19:37 +00:00
parent 3a44abba1a
commit 0524589f7f

View file

@ -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;