summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-11-07 02:16:22 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-11-07 02:16:22 +0000
commit848d01cde5eeb2d445e4a0b5364d9f163aef41fd (patch)
treeb98a03819f52566483b1a656184e898bdf86f517
parentbdd5c8bd563b171082c5625603b5a32e2286d973 (diff)
downloadsamba-848d01cde5eeb2d445e4a0b5364d9f163aef41fd.tar.gz
samba-848d01cde5eeb2d445e4a0b5364d9f163aef41fd.tar.bz2
samba-848d01cde5eeb2d445e4a0b5364d9f163aef41fd.zip
Initilising these variables before appending the domain groups to them
(This used to be commit 8004cfea19e10ad942c59f2f6a6bd992791017ba)
-rw-r--r--source3/rpc_server/srv_netlog_nt.c4
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c
index d9677519a4..44faefb645 100644
--- a/source3/rpc_server/srv_netlog_nt.c
+++ b/source3/rpc_server/srv_netlog_nt.c
@@ -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);
/*
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 6d57069149..c872c9f99f 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -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);