From: Pierangelo Masarati Date: Mon, 18 Feb 2008 19:47:07 +0000 (+0000) Subject: don't denormalize invalid values (ITS#5386) X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~139 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a20f8b5f976b0c9eea3a83a816f1c24421f8de6a;p=openldap don't denormalize invalid values (ITS#5386) --- diff --git a/servers/slapd/filter.c b/servers/slapd/filter.c index e0fc41de3b..60f4f0e063 100644 --- a/servers/slapd/filter.c +++ b/servers/slapd/filter.c @@ -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 );