mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
optimize ACI check (ITS#5636)
This commit is contained in:
parent
4d71b2f9c0
commit
7bef2ffdf6
1 changed files with 7 additions and 2 deletions
|
|
@ -345,9 +345,12 @@ aci_list_get_rights(
|
|||
continue;
|
||||
}
|
||||
|
||||
found = 1;
|
||||
*mask |= aci_list_get_attr_rights( &perm, attr, val );
|
||||
*mask |= aci_list_get_attr_rights( &perm, &aci_bv[ ACI_BV_BR_ALL ], NULL );
|
||||
|
||||
if ( *mask != ACL_PRIV_NONE ) {
|
||||
found = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return found;
|
||||
|
|
@ -439,7 +442,9 @@ aci_mask(
|
|||
opts,
|
||||
sdn;
|
||||
int rc;
|
||||
|
||||
|
||||
ACL_INIT( *grant );
|
||||
ACL_INIT( *deny );
|
||||
|
||||
assert( !BER_BVISNULL( &desc->ad_cname ) );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue