summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-06-29 09:56:47 -0700
committerJeremy Allison <jra@samba.org>2011-06-29 20:09:21 +0200
commit5882c75d40c7c40e3b54f8f711c15056706fa154 (patch)
tree466635a8e00760074615bbdb9b8c2ec977ced3f5 /source3
parent8b04345a0edc0131f6d8449b672278b31bd4b734 (diff)
downloadsamba-5882c75d40c7c40e3b54f8f711c15056706fa154.tar.gz
samba-5882c75d40c7c40e3b54f8f711c15056706fa154.tar.bz2
samba-5882c75d40c7c40e3b54f8f711c15056706fa154.zip
Second part of fix for bug #8219 - SMB Panic from Windows 7 Client.
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
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb2_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 24953edb5e..49e748bb3c 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -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;
}