summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ldap/servers/plugins/acl/acllas.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/ldap/servers/plugins/acl/acllas.c b/ldap/servers/plugins/acl/acllas.c
index 12cefaf4..5de18661 100644
--- a/ldap/servers/plugins/acl/acllas.c
+++ b/ldap/servers/plugins/acl/acllas.c
@@ -3920,16 +3920,10 @@ DS_LASRoleDnAttrEval(NSErr_t *errp, char *attr_name, CmpOp_t comparator,
** Let's compare with the client, thi might be just an user. If it is not
** then we test it against the list of groups.
*/
- if ((matched = acllas__user_has_role(
- lasinfo.aclpb,
- roleDN,
- lasinfo.aclpb->aclpb_authorization_sdn)) == ACL_TRUE){
- slapi_ch_free ( (void **)&n_attrval );
- slapi_sdn_free(&roleDN );
- break;
- }
+ matched = acllas__user_has_role(lasinfo.aclpb,
+ roleDN, lasinfo.aclpb->aclpb_authorization_sdn);
slapi_ch_free ( (void **)&n_attrval );
- slapi_sdn_free(&roleDN );
+ slapi_sdn_free(&roleDN);
if (matched == ACL_TRUE) {
break;
} else if ( matched == ACL_DONT_KNOW ) {