don't denormalize invalid values (ITS#5386)

This commit is contained in:
Pierangelo Masarati 2008-02-18 19:47:07 +00:00
parent cd753a1f58
commit a20f8b5f97

View File

@ -608,7 +608,9 @@ filter2bv_x( Operation *op, Filter *f, struct berval *fstr )
simple:
value = f->f_av_value;
if ( f->f_av_desc->ad_type->sat_equality &&
( f->f_av_desc->ad_type->sat_equality->smr_usage & SLAP_MR_MUTATION_NORMALIZER )) {
!undef &&
( f->f_av_desc->ad_type->sat_equality->smr_usage & SLAP_MR_MUTATION_NORMALIZER ))
{
f->f_av_desc->ad_type->sat_equality->smr_normalize(
(SLAP_MR_DENORMALIZE|SLAP_MR_VALUE_OF_ASSERTION_SYNTAX),
NULL, NULL, &f->f_av_value, &value, op->o_tmpmemctx );