From 9beaa08d79fa015b855123c24d56f99cb869e421 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 2 Mar 2003 00:21:24 +0000 Subject: [PATCH] Fix slap_sasl_authorized, c_authz_backend may be NULL --- servers/slapd/saslauthz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5