summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/read.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-06-29 22:16:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:39 -0500
commitd63dd113ae2c7f4f6d64def00a488548e805bc7e (patch)
treef8a7fe3514d3108cb345cd4258fcad8cd53c0a7a /source4/libcli/smb2/read.c
parent5b19070ac701dfc24ed77688373a9f071792b93c (diff)
downloadsamba-d63dd113ae2c7f4f6d64def00a488548e805bc7e.tar.gz
samba-d63dd113ae2c7f4f6d64def00a488548e805bc7e.tar.bz2
samba-d63dd113ae2c7f4f6d64def00a488548e805bc7e.zip
r16699: the layout of SMB2 Read and Write is identical...
so we know that the 9th bytes is just uninitialized padding metze (This used to be commit f97a21b970ed23973cced2c67b5bc9ecd7afee88)
Diffstat (limited to 'source4/libcli/smb2/read.c')
-rw-r--r--source4/libcli/smb2/read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/libcli/smb2/read.c b/source4/libcli/smb2/read.c
index 6806adb8f6..eb935fb4f1 100644
--- a/source4/libcli/smb2/read.c
+++ b/source4/libcli/smb2/read.c
@@ -31,7 +31,7 @@ struct smb2_request *smb2_read_send(struct smb2_tree *tree, struct smb2_read *io
{
struct smb2_request *req;
- req = smb2_request_init_tree(tree, SMB2_OP_READ, 0x31, False, 0);
+ req = smb2_request_init_tree(tree, SMB2_OP_READ, 0x30, True, 0);
if (req == NULL) return NULL;
SSVAL(req->out.body, 0x02, 0); /* pad */
@@ -40,7 +40,6 @@ struct smb2_request *smb2_read_send(struct smb2_tree *tree, struct smb2_read *io
smb2_push_handle(req->out.body+0x10, &io->in.file.handle);
SBVAL(req->out.body, 0x20, io->in.unknown1);
SBVAL(req->out.body, 0x28, io->in.unknown2);
- SCVAL(req->out.body, 0x30, io->in._bug);
smb2_transport_send(req);