diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-17 12:57:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:29:35 -0500 |
commit | 5033ce466c4ce679d13cb9f06cb1a90854486bcd (patch) | |
tree | cf4e46403220d3f67cfabcd32621684210665d49 /source4/smb_server | |
parent | 1735037d5f2b3dc1fa9f5d21721a7dc00c869172 (diff) | |
download | samba-5033ce466c4ce679d13cb9f06cb1a90854486bcd.tar.gz samba-5033ce466c4ce679d13cb9f06cb1a90854486bcd.tar.bz2 samba-5033ce466c4ce679d13cb9f06cb1a90854486bcd.zip |
r8527: found an uninitialised variable in 'make valgrindtest'
(This used to be commit 9eebd240d8ed9a634307ce31696d817f78f503b2)
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/trans2.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/source4/smb_server/trans2.c b/source4/smb_server/trans2.c index a1033e9476..b1b715967c 100644 --- a/source4/smb_server/trans2.c +++ b/source4/smb_server/trans2.c @@ -431,17 +431,18 @@ static NTSTATUS trans2_open(struct smbsrv_request *req, struct smb_trans2 *trans return NT_STATUS_NO_MEMORY; } - io->t2open.level = RAW_OPEN_T2OPEN; - io->t2open.in.flags = SVAL(trans->in.params.data, VWV(0)); - io->t2open.in.open_mode = SVAL(trans->in.params.data, VWV(1)); - io->t2open.in.file_attrs = SVAL(trans->in.params.data, VWV(3)); - io->t2open.in.write_time = srv_pull_dos_date(req->smb_conn, + io->t2open.level = RAW_OPEN_T2OPEN; + io->t2open.in.flags = SVAL(trans->in.params.data, VWV(0)); + io->t2open.in.open_mode = SVAL(trans->in.params.data, VWV(1)); + io->t2open.in.search_attrs = SVAL(trans->in.params.data, VWV(2)); + io->t2open.in.file_attrs = SVAL(trans->in.params.data, VWV(3)); + io->t2open.in.write_time = srv_pull_dos_date(req->smb_conn, trans->in.params.data + VWV(4));; - io->t2open.in.open_func = SVAL(trans->in.params.data, VWV(6)); - io->t2open.in.size = IVAL(trans->in.params.data, VWV(7)); - io->t2open.in.timeout = IVAL(trans->in.params.data, VWV(9)); - io->t2open.in.num_eas = 0; - io->t2open.in.eas = NULL; + io->t2open.in.open_func = SVAL(trans->in.params.data, VWV(6)); + io->t2open.in.size = IVAL(trans->in.params.data, VWV(7)); + io->t2open.in.timeout = IVAL(trans->in.params.data, VWV(9)); + io->t2open.in.num_eas = 0; + io->t2open.in.eas = NULL; trans2_pull_blob_string(req, &trans->in.params, 28, &io->t2open.in.fname, 0); |