diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-14 11:40:51 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-08-20 12:49:22 +0200 |
commit | 796c77d43dd1df8ff5df14397e787411d8407797 (patch) | |
tree | a68f699414a7ba33f9edf7028d46bf894a0d610e /libcli/security | |
parent | 2146f39111add90b2f12aa9c29a2f9c1e12f25a5 (diff) | |
download | samba-796c77d43dd1df8ff5df14397e787411d8407797.tar.gz |
lib: Use dom_sid_equal where appropriate
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'libcli/security')
-rw-r--r-- | libcli/security/util_sid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcli/security/util_sid.c b/libcli/security/util_sid.c index 5127109de7e..7d72d64b7d4 100644 --- a/libcli/security/util_sid.c +++ b/libcli/security/util_sid.c @@ -327,8 +327,9 @@ NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, uint32_t i; for (i=0; i<(*num_sids); i++) { - if (dom_sid_compare(sid, &(*sids)[i]) == 0) + if (dom_sid_equal(sid, &(*sids)[i])) { return NT_STATUS_OK; + } } return add_sid_to_array(mem_ctx, sid, sids, num_sids); |