mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
use result of validation (ITS#4028)
This commit is contained in:
parent
123948bd5e
commit
ae0b39e3cc
@ -1054,11 +1054,29 @@ meta_send_entry(
|
||||
&attr->a_vals[i] );
|
||||
}
|
||||
|
||||
if ( rc ) {
|
||||
LBER_FREE( attr->a_vals[i].bv_val );
|
||||
if ( --last == i ) {
|
||||
BER_BVZERO( &attr->a_vals[ i ] );
|
||||
break;
|
||||
}
|
||||
attr->a_vals[i] = attr->a_vals[last];
|
||||
BER_BVZERO( &attr->a_vals[last] );
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( pretty ) {
|
||||
LBER_FREE( attr->a_vals[i].bv_val );
|
||||
attr->a_vals[i] = pval;
|
||||
}
|
||||
}
|
||||
|
||||
if ( last == 0 ) {
|
||||
ch_free( attr->a_vals );
|
||||
ch_free( attr );
|
||||
goto next_attr;
|
||||
}
|
||||
}
|
||||
|
||||
if ( last && attr->a_desc->ad_type->sat_equality &&
|
||||
|
Loading…
Reference in New Issue
Block a user