From 539a6902def06185dfd56ce9a2eba8839a8ed1fd Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 31 Jan 2011 21:20:33 +0000 Subject: [PATCH] do not denormalize attrs without equality rule (ITS#6818) --- servers/slapd/back-meta/map.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-meta/map.c b/servers/slapd/back-meta/map.c index f1ac80d275..7bb172469b 100644 --- a/servers/slapd/back-meta/map.c +++ b/servers/slapd/back-meta/map.c @@ -298,7 +298,9 @@ map_attr_value( return -1; } - } else if ( ad->ad_type->sat_equality->smr_usage & SLAP_MR_MUTATION_NORMALIZER ) { + } else if ( ad->ad_type->sat_equality && + ad->ad_type->sat_equality->smr_usage & SLAP_MR_MUTATION_NORMALIZER ) + { if ( ad->ad_type->sat_equality->smr_normalize( (SLAP_MR_DENORMALIZE|SLAP_MR_VALUE_OF_ASSERTION_SYNTAX), NULL, NULL, value, &vtmp, memctx ) ) -- 2.39.5