]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Fix slap_sasl_authorized, c_authz_backend may be NULL
authorKurt Zeilenga <kurt@openldap.org>
Sun, 2 Mar 2003 04:58:03 +0000 (04:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 2 Mar 2003 04:58:03 +0000 (04:58 +0000)
servers/slapd/saslauthz.c

index 6726639f043b8ad58d9a37407477a2650a576d89..763094d714918d7849c7f9b4ca6ea74788cf7f50 100644 (file)
@@ -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;
        }