diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 41e72975e76..2b39cd452d8 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -4849,8 +4849,9 @@ static bool is_alias_member(struct dom_sid *sid, struct full_alias *alias) int i; for (i=0; inum_members; i++) { - if (dom_sid_compare(sid, &alias->members[i]) == 0) + if (dom_sid_equal(sid, &alias->members[i])) { return true; + } } return false;