From: Luke Howard Date: Thu, 1 Jan 2004 06:33:18 +0000 (+0000) Subject: Fix ACL plugin bug - return value of ACL plugins was being ignored X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~68 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03e5db818fdfbc379e1919cdce851f263d71911b;p=openldap Fix ACL plugin bug - return value of ACL plugins was being ignored --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 93032ef623..95492f54cf 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -201,10 +201,12 @@ access_allowed( } #ifdef LDAP_SLAPI - if ( op->o_pb && - !slapi_int_access_allowed( op, e, desc, val, access, state )) { - /* ACL plugin denied access */ - goto done; + if ( op->o_pb != NULL ) { + ret = slapi_int_access_allowed( op, e, desc, val, access, state ); + if ( ret == 0 ) { + /* ACL plugin denied access */ + goto done; + } } #endif /* LDAP_SLAPI */