From: Pierangelo Masarati Date: Mon, 31 Jan 2011 21:20:33 +0000 (+0000) Subject: do not denormalize attrs without equality rule (ITS#6818) X-Git-Tag: MIGRATION_CVS2GIT~155 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=539a6902def06185dfd56ce9a2eba8839a8ed1fd;p=openldap do not denormalize attrs without equality rule (ITS#6818) --- 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 ) )