From: Pierangelo Masarati Date: Wed, 10 Aug 2005 10:21:37 +0000 (+0000) Subject: trim use of uninitialized data; please review X-Git-Tag: OPENLDAP_AC_BP~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f38e72b26c4a245dc0aa43c0f6310f20ae3fd9cc;p=openldap trim use of uninitialized data; please review --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index ba67c1fed4..d1801f898d 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -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,