mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
Add a paranoia check on incoming PDUs
(This used to be commit 8b81b85200b7ca18cf81fdbbc3254d8578b35f43)
This commit is contained in:
parent
fd7635a116
commit
f8f1679bc4
@ -759,6 +759,13 @@ static void handle_incoming_pdu(struct cli_state *cli)
|
||||
|
||||
}
|
||||
|
||||
if ((IVAL(pdu, 4) != 0x424d53ff) /* 0xFF"SMB" */
|
||||
&& (IVAL(pdu, 4) != 0x424d45ff)) /* 0xFF"EMB" */ {
|
||||
DEBUG(10, ("Got non-SMB PDU\n"));
|
||||
status = NT_STATUS_INVALID_NETWORK_RESPONSE;
|
||||
goto invalidate_requests;
|
||||
}
|
||||
|
||||
/*
|
||||
* TODO: Handle oplock break requests
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user