diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 6 |
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; } |