]> git.sur5r.net Git - openldap/commitdiff
Don't pollute op->o_bd in access_allowed()
authorLuke Howard <lukeh@openldap.org>
Fri, 18 Apr 2003 04:57:15 +0000 (04:57 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 18 Apr 2003 04:57:15 +0000 (04:57 +0000)
servers/slapd/acl.c

index b4aaeefa4051256fb01b33e20a4cb08fd0ff033d..ea5aba5850541330fc497e18700a521baf2d76aa 100644 (file)
@@ -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;