]> git.sur5r.net Git - openldap/commitdiff
do not denormalize attrs without equality rule (ITS#6818)
authorPierangelo Masarati <ando@openldap.org>
Mon, 31 Jan 2011 21:20:33 +0000 (21:20 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 31 Jan 2011 21:20:33 +0000 (21:20 +0000)
servers/slapd/back-meta/map.c

index f1ac80d2758e6473e014a94a450fa02221ee60b5..7bb172469b7362a308d468688d1351765d9887d3 100644 (file)
@@ -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 ) )