]> 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)
committerPierangelo Masarati <ando@OpenLDAP.org>
Sun, 22 May 2011 22:22:12 +0000 (00:22 +0200)
servers/slapd/overlays/rwmmap.c

index d961e052e34cc3fa5a31265ef1124dbf897e1673..73ef50377f69130a88c26f56cbbe4fca45767ba0 100644 (file)
@@ -462,7 +462,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 ) )