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

s4:smb_server: return after we have processed an invalid smb2 request

metze
This commit is contained in:
Stefan Metzmacher 2009-05-11 15:54:55 +02:00
parent 993bdd87b5
commit d51bb8e4e6

View File

@ -502,8 +502,10 @@ NTSTATUS smbsrv_recv_smb2_request(void *private_data, DATA_BLOB blob)
uint16_t opcode = SVAL(req->in.hdr, SMB2_HDR_OPCODE); uint16_t opcode = SVAL(req->in.hdr, SMB2_HDR_OPCODE);
if (opcode == SMB2_OP_NEGPROT) { if (opcode == SMB2_OP_NEGPROT) {
smbsrv_terminate_connection(req->smb_conn, "Bad body size in SMB2 negprot"); smbsrv_terminate_connection(req->smb_conn, "Bad body size in SMB2 negprot");
return NT_STATUS_OK;
} else { } else {
smb2srv_send_error(req, NT_STATUS_INVALID_PARAMETER); smb2srv_send_error(req, NT_STATUS_INVALID_PARAMETER);
return NT_STATUS_OK;
} }
} }