From 46122fa68844f8df0e6b0d2d7cb5dfe6818bac6a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 15 Jun 2003 05:52:51 +0000 Subject: [PATCH] Fix ITS#2578 --- servers/slapd/saslauthz.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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; -- 2.39.5