summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-16 02:01:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:31 -0500
commit193830091fc99aa500aac123ed027ecc7e6ad11c (patch)
treec807c0344285f6403a0ac1f5ea2cc27e2ac1019c /source3
parent300acb99ad9fcd4a36998d4ee4d8349478deca59 (diff)
downloadsamba-193830091fc99aa500aac123ed027ecc7e6ad11c.tar.gz
samba-193830091fc99aa500aac123ed027ecc7e6ad11c.tar.bz2
samba-193830091fc99aa500aac123ed027ecc7e6ad11c.zip
r16285: On a 64-bit box, size_t != uint32. Ensure we use
the right parameter type. Jeremy. (This used to be commit 938545f5352161b4fe195c2a826a26db5236f851)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_ads.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index a8eb6f86d0..3ed651f8cd 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -806,7 +806,8 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain,
status = lookup_usergroups_memberof(domain, mem_ctx, user_dn,
&primary_group,
- p_num_groups, user_sids);
+ &num_groups, user_sids);
+ *p_num_groups = (uint32)num_groups;
if (NT_STATUS_IS_OK(status)) {
goto done;
}
@@ -816,7 +817,8 @@ static NTSTATUS lookup_usergroups(struct winbindd_domain *domain,
status = lookup_usergroups_member(domain, mem_ctx, user_dn,
&primary_group,
- p_num_groups, user_sids);
+ &num_groups, user_sids);
+ *p_num_groups = (uint32)num_groups;
goto done;
}