]> git.sur5r.net Git - openldap/commitdiff
mr should not be NULL; fixes ITS#2196
authorPierangelo Masarati <ando@openldap.org>
Sun, 24 Nov 2002 21:36:14 +0000 (21:36 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 24 Nov 2002 21:36:14 +0000 (21:36 +0000)
servers/slapd/value.c

index 9df3ab203769931793b849edf0de259e65cbe897..9ed1ad969f384ca3e8441641c1bbeb0a6ba80348 100644 (file)
@@ -324,7 +324,10 @@ value_match(
        struct berval nv1 = { 0, NULL };
        struct berval nv2 = { 0, NULL };
 
-       if( !mr->smr_match ) {
+       /*
+        * FIXME: mr should NOT be NULL ...
+        */
+       if( !mr || !mr->smr_match ) {
                return LDAP_INAPPROPRIATE_MATCHING;
        }