From: Luke Howard Date: Fri, 18 Apr 2003 04:57:15 +0000 (+0000) Subject: Don't pollute op->o_bd in access_allowed() X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~321 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=86a18c2ea2ec8e491f8d7c8da567682f6821b13a;p=openldap Don't pollute op->o_bd in access_allowed() --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index b4aaeefa40..ea5aba5850 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -300,7 +300,8 @@ access_allowed( if (state) { if (state->as_vi_acl == a && (state->as_recorded & ACL_STATE_RECORDED_NV)) { Debug( LDAP_DEBUG_ACL, "access_allowed: result from state (%s)\n", attr, 0, 0 ); - return state->as_result; + ret = state->as_result; + goto done; } else if (!st_initialized) { Debug( LDAP_DEBUG_ACL, "access_allowed: no res from state (%s)\n", attr, 0, 0); *state = state_init;