From e912d507093b7c22130158ef0bf2c0c4ffc78bac Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sat, 7 Nov 2009 21:20:12 +0100 Subject: s4:auth - make some parts "signed-safe" Signed-off-by: Andrew Bartlett --- source4/auth/sam.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source4/auth/sam.c') diff --git a/source4/auth/sam.c b/source4/auth/sam.c index 7d2f249b06..3ded739f6a 100644 --- a/source4/auth/sam.c +++ b/source4/auth/sam.c @@ -299,10 +299,11 @@ static bool sids_contains_sid(const struct dom_sid **sids, const int num_sids, static NTSTATUS authsam_expand_nested_groups(struct ldb_context *sam_ctx, const struct dom_sid *sid, const bool only_childs, TALLOC_CTX *res_sids_ctx, struct dom_sid ***res_sids, - int *num_res_sids) + unsigned int *num_res_sids) { const char * const attrs[] = { "memberOf", NULL }; - int i, ret; + unsigned int i; + int ret; bool already_there; struct ldb_dn *tmp_dn; struct dom_sid *tmp_sid; @@ -390,7 +391,7 @@ _PUBLIC_ NTSTATUS authsam_make_server_info(TALLOC_CTX *mem_ctx, struct dom_sid *primary_group_sid; /* SID structures for the expanded group memberships */ struct dom_sid **groupSIDs = NULL, **groupSIDs_2 = NULL; - int num_groupSIDs = 0, num_groupSIDs_2 = 0, i; + unsigned int num_groupSIDs = 0, num_groupSIDs_2 = 0, i; uint32_t userAccountControl; server_info = talloc(mem_ctx, struct auth_serversupplied_info); -- cgit