summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-11-10 12:20:20 +0100
committerKarolin Seeger <kseeger@samba.org>2011-11-16 20:28:05 +0100
commit5336e301db8f34325338d2b3bcef2cb614e6dddd (patch)
tree5839210b12e1e6a7fe8a34b8595884784e80da8b
parentfc394c33e3c201b0db620d9c46afedf852cec9a8 (diff)
downloadsamba-5336e301db8f34325338d2b3bcef2cb614e6dddd.tar.gz
samba-5336e301db8f34325338d2b3bcef2cb614e6dddd.tar.xz
samba-5336e301db8f34325338d2b3bcef2cb614e6dddd.zip
s3:smb2_flush: outbody only needs 4 bytes
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Nov 14 10:01:30 CET 2011 on sn-devel-104 (cherry picked from commit 72cabbbe50a36986dde823f0ba60abf9052c535a) Fix bug #8579 (smb2_flush sends uninitialized memory).
-rw-r--r--source3/smbd/smb2_flush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_flush.c b/source3/smbd/smb2_flush.c
index 9b00eb28789..5f3c42a9d8b 100644
--- a/source3/smbd/smb2_flush.c
+++ b/source3/smbd/smb2_flush.c
@@ -87,7 +87,7 @@ static void smbd_smb2_request_flush_done(struct tevent_req *subreq)
return;
}
- outbody = data_blob_talloc(req->out.vector, NULL, 0x10);
+ outbody = data_blob_talloc(req->out.vector, NULL, 0x04);
if (outbody.data == NULL) {
error = smbd_smb2_request_error(req, NT_STATUS_NO_MEMORY);
if (!NT_STATUS_IS_OK(error)) {