} 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 ) );
}
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,
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",
accessmask2str( mask, accessmaskbuf, 1 ) );
done:
- ACL_PRIV_SET( *maskp, mask );
+ ACL_PRIV_ASSIGN( *maskp, mask );
return ret;
}
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,