1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

s3:smb2_server: pass smbXsrv_connection to smb2_validate_message_id()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Stefan Metzmacher 2014-06-11 10:05:43 +02:00 committed by Michael Adam
parent aaa072a1f3
commit f3b24168f9

View File

@ -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;
}
}