From: Howard Chu Date: Sun, 2 Mar 2003 00:21:24 +0000 (+0000) Subject: Fix slap_sasl_authorized, c_authz_backend may be NULL X-Git-Tag: NO_SLAP_OP_BLOCKS~223 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9beaa08d79fa015b855123c24d56f99cb869e421;p=openldap Fix slap_sasl_authorized, c_authz_backend may be NULL --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 50225b1d17..3dc0158afc 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -693,7 +693,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; }