s3:smb2_flush: outbody only needs 4 bytes
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Nov 2011 11:20:20 +0000 (12:20 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 16 Nov 2011 19:28:05 +0000 (20:28 +0100)
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).

source3/smbd/smb2_flush.c

index 9b00eb2878945e674ae9ffef5b4742a0bd185d3d..5f3c42a9d8ba4549b47a4060da6dd2ee5e7a9b2e 100644 (file)
@@ -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)) {