1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

Initilising these variables before appending the domain groups to them

This commit is contained in:
Andrew Bartlett
-
parent 86c2f96366
commit 8004cfea19
2 changed files with 5 additions and 1 deletions

View File

@ -637,7 +637,9 @@ NTSTATUS _net_sam_logon(pipes_struct *p, NET_Q_SAM_LOGON *q_u, NET_R_SAM_LOGON *
* rids and then into machine sids for this user.
* JRA.
*/
*domain_groups = 0;
get_domain_user_groups(domain_groups, nt_username);
/*

View File

@ -1833,6 +1833,8 @@ NTSTATUS _samr_query_usergroups(pipes_struct *p, SAMR_Q_QUERY_USERGROUPS *q_u, S
return NT_STATUS_NO_SUCH_USER;
}
*groups = 0;
get_domain_user_groups(groups, pdb_get_username(sam_pass));
gids = NULL;
num_groups = make_dom_gids(p->mem_ctx, groups, &gids);