diff options
author | Gerald Carter <jerry@samba.org> | 2000-08-16 03:38:52 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-08-16 03:38:52 +0000 |
commit | 2ba82c02d49c77bee19ad8895883915171062442 (patch) | |
tree | 70f39f25e03213b5ba3636a68f454986c02c48cf /source3 | |
parent | a705af14be1f7aa65e2752f299808fbc6c01cd85 (diff) | |
download | samba-2ba82c02d49c77bee19ad8895883915171062442.tar.gz samba-2ba82c02d49c77bee19ad8895883915171062442.tar.bz2 samba-2ba82c02d49c77bee19ad8895883915171062442.zip |
fixed unitialized struct bug in enum_users (whatever it is called)
jerry
(This used to be commit a606131508592d72f3fd8a0dd63073e9c559062f)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_samr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index fd39f87e79..04399a638c 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -734,7 +734,7 @@ static BOOL samr_reply_enum_dom_aliases(SAMR_Q_ENUM_DOM_ALIASES *q_u, fstring sid_str; fstring sam_sid_str; struct group *grp; - + ZERO_STRUCT(r_e); /* find the policy handle. open a policy on it. */ @@ -809,6 +809,8 @@ static BOOL api_samr_enum_dom_aliases(pipes_struct *p) SAMR_Q_ENUM_DOM_ALIASES q_e; 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)) @@ -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); |