Second part of fix for bug #8219 - SMB Panic from Windows 7 Client.
authorJeremy Allison <jra@samba.org>
Wed, 29 Jun 2011 16:56:47 +0000 (09:56 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 29 Jun 2011 18:09:21 +0000 (20:09 +0200)
Pass in the correct vector to the signing algorithm in an async
response - we must start with vector[1] which has the SMB2_HDR_BODY
length, not vector[0] which is the 4 byte packet length. Also
note we're passing in 2 vectors not 3.

Metze please review.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jun 29 20:09:21 CEST 2011 on sn-devel-104

source3/smbd/smb2_server.c

index 24953edb5e9dd1de83f74900baecce33e39f7401..49e748bb3c37458c887eaf167f774ff5e5b2ac90 100644 (file)
@@ -923,7 +923,7 @@ NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req,
 
        if (req->do_signing) {
                status = smb2_signing_sign_pdu(req->session->session_key,
-                                       state->vector, 3);
+                                       &state->vector[1], 2);
                if (!NT_STATUS_IS_OK(status)) {
                        return status;
                }