]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#2578
authorKurt Zeilenga <kurt@openldap.org>
Sun, 15 Jun 2003 05:52:51 +0000 (05:52 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 15 Jun 2003 05:52:51 +0000 (05:52 +0000)
servers/slapd/saslauthz.c

index ba66b4249b7b8672de63041dd2981bb24e18306d..de7843524c02e8215f43fd5b21589f37c8eefa0c 100644 (file)
@@ -515,9 +515,11 @@ slap_sasl_check_authz( Operation *op,
        if( rc != LDAP_SUCCESS ) goto COMPLETE;
 
        /* Check if the *assertDN matches any **vals */
-       for( i=0; vals[i].bv_val != NULL; i++ ) {
-               rc = slap_sasl_match( op, &vals[i], assertDN, authc );
-               if ( rc == LDAP_SUCCESS ) goto COMPLETE;
+       if( vals != NULL ) {
+               for( i=0; vals[i].bv_val != NULL; i++ ) {
+                       rc = slap_sasl_match( op, &vals[i], assertDN, authc );
+                       if ( rc == LDAP_SUCCESS ) goto COMPLETE;
+               }
        }
        rc = LDAP_INAPPROPRIATE_AUTH;