]> git.sur5r.net Git - openldap/commitdiff
check sat_equality before using it (ITS#6943)
authorPierangelo Masarati <ando@OpenLDAP.org>
Sun, 22 May 2011 22:22:12 +0000 (00:22 +0200)
committerQuanah Gibson-Mount <quanah@openldap.org>
Wed, 8 Jun 2011 18:26:12 +0000 (11:26 -0700)
servers/slapd/overlays/rwmmap.c

index aeabdc09d1c033d38640c9e1030f00223be3f08b..d3c8c19a1dd316f472f7756969e8387156886bda 100644 (file)
@@ -436,7 +436,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 ) )