From a20f8b5f976b0c9eea3a83a816f1c24421f8de6a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 18 Feb 2008 19:47:07 +0000 Subject: [PATCH] don't denormalize invalid values (ITS#5386) --- servers/slapd/filter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.39.5