git.samba.org
/
kai
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libcli/smb: fix unitialized padding in smb2_create_blob_push_one() (bug #9209)
[kai/samba.git]
/
libcli
/
smb
/
smb2_create_blob.c
diff --git
a/libcli/smb/smb2_create_blob.c
b/libcli/smb/smb2_create_blob.c
index 92387db953f74df610459ee45822b2c6fdfa81c4..c6b2e1e7c88f510b38b667ca9cdd5204452204e7 100644
(file)
--- 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 = 0x1
4
+ tag_length;
+ blob_offset = 0x1
0
+ tag_length;
blob_pad = smb2_create_blob_padding(blob_offset, 8);
next_offset = blob_offset + blob_pad + blob->data.length;
if (!last) {