Fix slap_sasl_authorized, c_authz_backend may be NULL

This commit is contained in:
Howard Chu 2003-03-02 00:21:24 +00:00
parent f172e06cc0
commit 9beaa08d79

View 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;
}