From: Pierangelo Masarati Date: Tue, 12 Apr 2005 00:34:13 +0000 (+0000) Subject: cleanup previous commit X-Git-Tag: OPENLDAP_AC_BP~923 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f103c7853076b4a92881f2a8d6316c12deca560a;p=openldap cleanup previous commit --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 2cbef06023..5d5af38f45 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -260,7 +260,7 @@ slap_access_allowed( } else { if ( state ) state->as_vi_acl = NULL; a = NULL; - ACL_INIT( mask ); + ACL_PRIV_ASSIGN( mask, *maskp ); count = 0; memset( matches, '\0', sizeof( matches ) ); } @@ -313,7 +313,7 @@ vd_access: Debug( LDAP_DEBUG_ACL, "=> slap_access_allowed: \"%s\" (%s) invalid!\n", e->e_dn, attr, 0 ); - ACL_INIT( mask ); + ACL_PRIV_ASSIGN( mask, *maskp ); } else if ( control == ACL_BREAK ) { Debug( LDAP_DEBUG_ACL, @@ -322,7 +322,7 @@ vd_access: goto done; } - ret = ACL_GRANT(mask, access); + ret = ACL_GRANT( mask, access ); Debug( LDAP_DEBUG_ACL, "=> slap_access_allowed: %s access %s by %s\n", @@ -330,7 +330,7 @@ vd_access: accessmask2str( mask, accessmaskbuf, 1 ) ); done: - ACL_PRIV_SET( *maskp, mask ); + ACL_PRIV_ASSIGN( *maskp, mask ); return ret; } @@ -436,7 +436,7 @@ access_allowed_mask( Debug( LDAP_DEBUG_ACL, "=> access_allowed: \"%s\" (%s) invalid!\n", e->e_dn, attr, 0 ); - ACL_INIT(mask); + ACL_INIT( mask ); } else if ( control == ACL_BREAK ) { Debug( LDAP_DEBUG_ACL,