1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

fixed unitialized struct bug in enum_users (whatever it is called)

jerry
This commit is contained in:
Gerald Carter 0001-01-01 00:00:00 +00:00
parent f00a330b3e
commit a606131508

View File

@ -810,6 +810,8 @@ static BOOL api_samr_enum_dom_aliases(pipes_struct *p)
prs_struct *data = &p->in_data.data;
prs_struct *rdata = &p->out_data.rdata;
ZERO_STRUCT(q_e);
/* grab the samr open */
if(!samr_io_q_enum_dom_aliases("", &q_e, data, 0))
return False;
@ -886,6 +888,7 @@ static BOOL samr_reply_query_dispinfo(SAMR_Q_QUERY_DISPINFO *q_u, prs_struct *rd
{
/* query disp info is for users */
ZERO_STRUCT (info1);
switch_level = 0x1;
init_sam_info_1(&info1, ACB_NORMAL,
q_u->start_idx, num_entries, pass);
@ -897,6 +900,7 @@ static BOOL samr_reply_query_dispinfo(SAMR_Q_QUERY_DISPINFO *q_u, prs_struct *rd
case 0x2:
{
/* query disp info is for servers */
ZERO_STRUCT (info2);
switch_level = 0x2;
init_sam_info_2(&info2, ACB_WSTRUST,
q_u->start_idx, num_entries, pass);