1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

if the sids are not the same pointer and either of the sids are NULL

then the two sids are not equal
(This used to be commit 9ccf3b1dc5baf0e00d032d8b932ab0fb5b1e11b1)
This commit is contained in:
Andrew Tridgell 2000-07-25 20:26:50 +00:00
parent fcbf694957
commit 5a98f9cb35

View File

@ -404,6 +404,9 @@ BOOL sid_equal(const DOM_SID *sid1, const DOM_SID *sid2)
{
int i;
if (sid1 == sid2) return True;
if (!sid1 || !sid2) return False;
/* compare most likely different rids, first: i.e start at end */
for (i = sid1->num_auths-1; i >= 0; --i)
if (sid1->sub_auths[i] != sid2->sub_auths[i])