libcli/smb: fix unitialized padding in smb2_create_blob_push_one() (bug #9209)
authorStefan Metzmacher <metze@samba.org>
Sat, 27 Oct 2012 06:11:14 +0000 (08:11 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 27 Oct 2012 08:05:22 +0000 (10:05 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Oct 27 10:05:22 CEST 2012 on sn-devel-104

libcli/smb/smb2_create_blob.c

index 92387db953f74df610459ee45822b2c6fdfa81c4..c6b2e1e7c88f510b38b667ca9cdd5204452204e7 100644 (file)
@@ -113,7 +113,7 @@ static NTSTATUS smb2_create_blob_push_one(TALLOC_CTX *mem_ctx, DATA_BLOB *buffer
        size_t next_pad = 0;
        bool ok;
 
-       blob_offset = 0x14 + tag_length;
+       blob_offset = 0x10 + tag_length;
        blob_pad = smb2_create_blob_padding(blob_offset, 8);
        next_offset = blob_offset + blob_pad + blob->data.length;
        if (!last) {