From: Kurt Zeilenga Date: Sun, 2 Mar 2003 04:58:03 +0000 (+0000) Subject: Fix slap_sasl_authorized, c_authz_backend may be NULL X-Git-Tag: OPENLDAP_REL_ENG_2_1_15~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08251e4b062b9fbd331889cadc49162642f4d94b;p=thirdparty%2Fopenldap.git Fix slap_sasl_authorized, c_authz_backend may be NULL --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 6726639f04..763094d714 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -692,7 +692,7 @@ int slap_sasl_authorized( Connection *conn, } /* Allow the manager to authorize as any DN. */ - if( be_isroot( conn->c_authz_backend, authcDN )) { + if( conn->c_authz_backend && be_isroot( conn->c_authz_backend, authcDN )) { rc = LDAP_SUCCESS; goto DONE; }