mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-05 07:21:28 +02:00
Return STATUS_INVALID_SMB instead of STATUS_SMB_BAD_COMMAND when usage of SMB_COM_NEGOTIATE is invalid
This commit is contained in:
parent
e1a2710bbd
commit
7c3e6edf84
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ namespace SMBLibrary.Server
|
|||
else
|
||||
{
|
||||
// [MS-CIFS] An SMB_COM_NEGOTIATE exchange MUST be completed before any other SMB messages are sent to the server
|
||||
header.Status = NTStatus.STATUS_SMB_BAD_COMMAND;
|
||||
header.Status = NTStatus.STATUS_INVALID_SMB;
|
||||
return new ErrorResponse(command.CommandName);
|
||||
}
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ namespace SMBLibrary.Server
|
|||
{
|
||||
// There MUST be only one SMB_COM_NEGOTIATE exchange per SMB connection.
|
||||
// Subsequent SMB_COM_NEGOTIATE requests received by the server MUST be rejected with error responses.
|
||||
header.Status = NTStatus.STATUS_SMB_BAD_COMMAND;
|
||||
header.Status = NTStatus.STATUS_INVALID_SMB;
|
||||
return new ErrorResponse(command.CommandName);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue