summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-09-20 00:42:02 +0200
committerStefan Metzmacher <metze@samba.org>2012-09-20 07:18:31 +0200
commitbc77745cfaf502e24575dab9ae323643d94760e3 (patch)
treee432befb71ed030810a4ee7de24467d59aa02d94
parent38994f6ff34316ad08961f62a1f57429f7968e70 (diff)
downloadsamba-bc77745cfaf502e24575dab9ae323643d94760e3.tar.gz
samba-bc77745cfaf502e24575dab9ae323643d94760e3.tar.bz2
samba-bc77745cfaf502e24575dab9ae323643d94760e3.zip
s3:smb2_server: fix usage of invalid memory in smb2_signing_check_pdu()
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Sep 20 07:18:31 CEST 2012 on sn-devel-104
-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 be7997febf..fd90b2f81b 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -2017,7 +2017,7 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
status = smb2_signing_check_pdu(signing_key,
conn->protocol,
SMBD_SMB2_IN_HDR_IOV(req),
- SMBD_SMB2_NUM_IOV_PER_REQ);
+ SMBD_SMB2_NUM_IOV_PER_REQ - 1);
if (!NT_STATUS_IS_OK(status)) {
return smbd_smb2_request_error(req, status);
}