mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 22:20:28 -05:00
ITS#5959 drop attrs with illegal values
This commit is contained in:
parent
52e0581b7f
commit
4e09f864a9
1 changed files with 7 additions and 2 deletions
|
|
@ -2080,12 +2080,17 @@ remove_oc:;
|
|||
|
||||
attr->a_nvals = ch_malloc( ( last + 1 ) * sizeof( struct berval ) );
|
||||
for ( i = 0; i<last; i++ ) {
|
||||
attr->a_desc->ad_type->sat_equality->smr_normalize(
|
||||
/* if normalizer fails, forget this attr */
|
||||
if ( attr->a_desc->ad_type->sat_equality->smr_normalize(
|
||||
SLAP_MR_VALUE_OF_ATTRIBUTE_SYNTAX,
|
||||
attr->a_desc->ad_type->sat_syntax,
|
||||
attr->a_desc->ad_type->sat_equality,
|
||||
&attr->a_vals[i], &attr->a_nvals[i],
|
||||
NULL );
|
||||
NULL )) {
|
||||
BER_BVZERO( &attr->a_nvals[i] );
|
||||
attr_free( attr );
|
||||
goto next_attr;
|
||||
}
|
||||
}
|
||||
BER_BVZERO( &attr->a_nvals[i] );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue