summaryrefslogtreecommitdiff
path: root/libcli
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2016-08-19 16:58:39 -0700
committerStefan Metzmacher <metze@samba.org>2016-08-28 18:12:11 +0200
commitb755e66ee54f1d8ffd554b1c170bb663fa2e8883 (patch)
tree8c23b9ef720316407c047c1339d9250007c26cee /libcli
parent38baf4b59406ef903b3f015cb2ef893b939b5dcd (diff)
downloadsamba-b755e66ee54f1d8ffd554b1c170bb663fa2e8883.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> (cherry picked from commit f8caadfc78a15fa3aefc9ef6249195767c47aa8f)
Diffstat (limited to 'libcli')
-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);
}