]> git.sur5r.net Git - openldap/commitdiff
Fix ACL plugin bug - return value of ACL plugins was being ignored
authorLuke Howard <lukeh@openldap.org>
Thu, 1 Jan 2004 06:33:18 +0000 (06:33 +0000)
committerLuke Howard <lukeh@openldap.org>
Thu, 1 Jan 2004 06:33:18 +0000 (06:33 +0000)
servers/slapd/acl.c

index 93032ef62372c9745e688fa32b68f6b59a19ad1c..95492f54cf26cd944930c12020eb2a7cd0d40041 100644 (file)
@@ -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 */