summaryrefslogtreecommitdiff
path: root/libcli/smb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2016-08-19 16:58:39 -0700
committerJeremy Allison <jra@samba.org>2016-08-22 19:10:22 +0200
commitf8caadfc78a15fa3aefc9ef6249195767c47aa8f (patch)
treecfd343157e6fb4ecc970849260b3e18dd9a1392d /libcli/smb
parentcb687a6af0a498676268874ab25b19a6b0764915 (diff)
downloadsamba-f8caadfc78a15fa3aefc9ef6249195767c47aa8f.tar.gz
s3: libsmb: Correctly align create contexts in a create call.
SMB2 shadow copy requests are the first time we've used create contexts in anger in this codepath. This took me longer than I'd like to admit to find :-). BUG: https://bugzilla.samba.org/show_bug.cgi?id=12166 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'libcli/smb')
-rw-r--r--libcli/smb/smb2cli_create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcli/smb/smb2cli_create.c b/libcli/smb/smb2cli_create.c
index 0db546c5414..778b501fae7 100644
--- a/libcli/smb/smb2cli_create.c
+++ b/libcli/smb/smb2cli_create.c
@@ -113,6 +113,7 @@ struct tevent_req *smb2cli_create_send(
blobs_offset = ((blobs_offset + 3) & ~3);
if (blob.length > 0) {
+ blobs_offset = ((blobs_offset + 7) & ~7);
SIVAL(fixed, 48, blobs_offset + SMB2_HDR_BODY + 56);
SIVAL(fixed, 52, blob.length);
}