[Pkg-samba-maint] [samba] 07/17: s3: libsmb: Correctly align create contexts in a create call.

Mathieu Parent sathieu at moszumanska.debian.org
Thu Mar 30 22:15:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

sathieu pushed a commit to branch jessie
in repository samba.

commit 090e48ff85ab38c9b040776d53d044e1565892fe
Author: Jeremy Allison <jra at samba.org>
Date:   Fri Aug 19 16:58:39 2016 -0700

    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 at samba.org>
    Reviewed-by: Uri Simchoni <uri at samba.org>
    (cherry picked from commit f8caadfc78a15fa3aefc9ef6249195767c47aa8f)
---
 libcli/smb/smb2cli_create.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcli/smb/smb2cli_create.c b/libcli/smb/smb2cli_create.c
index 0db546c..778b501 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);
 	}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git




More information about the Pkg-samba-maint mailing list