summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-07 10:03:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:36 -0500
commit92a9d900504cbe6f3bae67b285faa523a3308835 (patch)
tree40ce1e19880c838f9e9363c52b2085ddcbd68aab /source4
parent51353ac5595c916171bbc23481ad7023037faf27 (diff)
downloadsamba-92a9d900504cbe6f3bae67b285faa523a3308835.tar.gz
samba-92a9d900504cbe6f3bae67b285faa523a3308835.tar.bz2
samba-92a9d900504cbe6f3bae67b285faa523a3308835.zip
r3593: fixed the trans2 t2open reply to initialise all bytes (bug found by valgrind)
(This used to be commit b8ba6793c1b27f118083ddfa71af8ffbf2b65125)
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/trans2.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/smb_server/trans2.c b/source4/smb_server/trans2.c
index 9e0a5934d9..1d5c93cf18 100644
--- a/source4/smb_server/trans2.c
+++ b/source4/smb_server/trans2.c
@@ -454,10 +454,12 @@ static NTSTATUS trans2_open(struct smbsrv_request *req, struct smb_trans2 *trans
VWV(2), io->t2open.out.write_time);
SIVAL(trans->out.params.data, VWV(4), io->t2open.out.size);
SSVAL(trans->out.params.data, VWV(6), io->t2open.out.access);
- SIVAL(trans->out.params.data, VWV(7), io->t2open.out.ftype);
- SIVAL(trans->out.params.data, VWV(8), io->t2open.out.devstate);
- SIVAL(trans->out.params.data, VWV(9), io->t2open.out.action);
- SIVAL(trans->out.params.data, VWV(10), io->t2open.out.unknown);
+ SSVAL(trans->out.params.data, VWV(7), io->t2open.out.ftype);
+ SSVAL(trans->out.params.data, VWV(8), io->t2open.out.devstate);
+ SSVAL(trans->out.params.data, VWV(9), io->t2open.out.action);
+ SIVAL(trans->out.params.data, VWV(10), 0); /* reserved */
+ SSVAL(trans->out.params.data, VWV(12), 0); /* EaErrorOffset */
+ SIVAL(trans->out.params.data, VWV(13), 0); /* EaLength */
return status;
}