From: Kurt Zeilenga Date: Sun, 15 Jun 2003 05:52:51 +0000 (+0000) Subject: Fix ITS#2578 X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~880 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46122fa68844f8df0e6b0d2d7cb5dfe6818bac6a;p=openldap Fix ITS#2578 --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index ba66b4249b..de7843524c 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -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;