From: Stefan Metzmacher Date: Thu, 10 Nov 2011 11:20:20 +0000 (+0100) Subject: s3:smb2_flush: outbody only needs 4 bytes X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=5336e301db8f34325338d2b3bcef2cb614e6dddd;p=ddiss%2Fsamba.git s3:smb2_flush: outbody only needs 4 bytes metze Autobuild-User: Stefan Metzmacher 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). --- 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)) {