From 03e5db818fdfbc379e1919cdce851f263d71911b Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 1 Jan 2004 06:33:18 +0000 Subject: [PATCH] Fix ACL plugin bug - return value of ACL plugins was being ignored --- servers/slapd/acl.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 */ -- 2.39.5