summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-10-27 08:11:14 +0200
committerStefan Metzmacher <metze@samba.org>2012-10-27 10:05:22 +0200
commit2b4672f2d30c01a4767acf660ddb061676c59908 (patch)
tree234fe00f5e815bcb76eb7459fa84b932febdbcd9
parent3180a1082a79698a69f6721282cb8c45900f884c (diff)
downloadsamba-2b4672f2d30c01a4767acf660ddb061676c59908.tar.gz
samba-2b4672f2d30c01a4767acf660ddb061676c59908.tar.bz2
samba-2b4672f2d30c01a4767acf660ddb061676c59908.zip
libcli/smb: fix unitialized padding in smb2_create_blob_push_one() (bug #9209)
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
-rw-r--r--libcli/smb/smb2_create_blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/smb/smb2_create_blob.c b/libcli/smb/smb2_create_blob.c
index 92387db953..c6b2e1e7c8 100644
--- a/libcli/smb/smb2_create_blob.c
+++ b/libcli/smb/smb2_create_blob.c
@@ -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) {