From bc77745cfaf502e24575dab9ae323643d94760e3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 20 Sep 2012 00:42:02 +0200 Subject: [PATCH] s3:smb2_server: fix usage of invalid memory in smb2_signing_check_pdu() metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Sep 20 07:18:31 CEST 2012 on sn-devel-104 --- source3/smbd/smb2_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index be7997febfb..fd90b2f81be 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); } -- 2.11.4.GIT