]> git.sur5r.net Git - openldap/commitdiff
Fix slap_sasl_authorized, c_authz_backend may be NULL
authorHoward Chu <hyc@openldap.org>
Sun, 2 Mar 2003 00:21:24 +0000 (00:21 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 2 Mar 2003 00:21:24 +0000 (00:21 +0000)
servers/slapd/saslauthz.c

index 50225b1d1712589797ffb93c778de14bcdb26cc7..3dc0158afc8e950f7ecd1ed5f8deca70bf8de592 100644 (file)
@@ -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;
        }