git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91a56b4
)
libcli/security: Make add_sid_to_array_unique use a uin32_t counter
author
Volker Lendecke
<vl@samba.org>
Thu, 3 Feb 2011 12:23:50 +0000
(
05:23
-0700)
committer
Michael Adam
<obnox@samba.org>
Mon, 7 Feb 2011 18:24:19 +0000
(19:24 +0100)
Logical consequence of the previous commit
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 7 19:24:19 CET 2011 on sn-devel-104
libcli/security/util_sid.c
patch
|
blob
|
history
diff --git
a/libcli/security/util_sid.c
b/libcli/security/util_sid.c
index 6aec2c07342876c96da69ce66ba203470d565047..535e81cbdbeee27fdd31428fff4568e895823c28 100644
(file)
--- a/
libcli/security/util_sid.c
+++ b/
libcli/security/util_sid.c
@@
-310,7
+310,7
@@
NTSTATUS add_sid_to_array(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
NTSTATUS add_sid_to_array_unique(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
struct dom_sid **sids, uint32_t *num_sids)
{
-
size
_t i;
+
uint32
_t i;
for (i=0; i<(*num_sids); i++) {
if (dom_sid_compare(sid, &(*sids)[i]) == 0)