]> git.sur5r.net Git - openldap/commitdiff
trim use of uninitialized data; please review
authorPierangelo Masarati <ando@openldap.org>
Wed, 10 Aug 2005 10:21:37 +0000 (10:21 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 10 Aug 2005 10:21:37 +0000 (10:21 +0000)
servers/slapd/acl.c

index ba67c1fed4aa31f7cc4c6cf0785a24142da3b1cd..d1801f898dc96f698081bac709ae2f2fa75a8292 100644 (file)
@@ -387,7 +387,6 @@ access_allowed_mask(
        char                            accessmaskbuf[ACCESSMASK_MAXLEN];
 #endif
        slap_mask_t                     mask;
-       slap_control_t                  control;
        slap_access_t                   access_level;
        const char                      *attr;
        int                             st_same_attr = 0;
@@ -483,14 +482,12 @@ access_allowed_mask(
                                e->e_dn, attr, 0 );
                        ACL_INIT( mask );
 
-               } else if ( control == ACL_BREAK ) {
+               } else {
                        Debug( LDAP_DEBUG_ACL,
                                "=> access_allowed: no more rules\n", 0, 0, 0 );
 
                        goto done;
                }
-
-               ret = ACL_GRANT( mask, access );
        }
 
        Debug( LDAP_DEBUG_ACL,