From f3b24168f91d95a483b63277c605af90c9a0407a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 11 Jun 2014 10:05:43 +0200 Subject: [PATCH] s3:smb2_server: pass smbXsrv_connection to smb2_validate_message_id() Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke Reviewed-by: Michael Adam --- source3/smbd/smb2_server.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 427f81550d9..1f7c3d4521f 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -652,10 +652,9 @@ static bool smb2_validate_sequence_number(struct smbXsrv_connection *xconn, return true; } -static bool smb2_validate_message_id(struct smbd_server_connection *sconn, - const uint8_t *inhdr) +static bool smb2_validate_message_id(struct smbXsrv_connection *xconn, + const uint8_t *inhdr) { - struct smbXsrv_connection *xconn = sconn->conn; uint64_t message_id = BVAL(inhdr, SMB2_HDR_MESSAGE_ID); uint16_t opcode = SVAL(inhdr, SMB2_HDR_OPCODE); uint16_t credit_charge = 1; @@ -754,7 +753,7 @@ static NTSTATUS smbd_smb2_request_validate(struct smbd_smb2_request *req) return NT_STATUS_INVALID_PARAMETER; } - if (!smb2_validate_message_id(req->sconn, inhdr)) { + if (!smb2_validate_message_id(req->xconn, inhdr)) { return NT_STATUS_INVALID_PARAMETER; } } -- 2.11.4.GIT