mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-15 11:43:46 +02:00
SMB2: Improved ERROR response implementation
This commit is contained in:
parent
e6e7bbe412
commit
204c912074
1 changed files with 9 additions and 1 deletions
|
@ -33,8 +33,16 @@ namespace SMBLibrary.SMB2
|
||||||
public ErrorResponse(SMB2CommandName commandName, NTStatus status) : base(commandName)
|
public ErrorResponse(SMB2CommandName commandName, NTStatus status) : base(commandName)
|
||||||
{
|
{
|
||||||
Header.IsResponse = true;
|
Header.IsResponse = true;
|
||||||
Header.Status = status;
|
|
||||||
StructureSize = DeclaredSize;
|
StructureSize = DeclaredSize;
|
||||||
|
Header.Status = status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ErrorResponse(SMB2CommandName commandName, NTStatus status, byte[] errorData) : base(commandName)
|
||||||
|
{
|
||||||
|
Header.IsResponse = true;
|
||||||
|
StructureSize = DeclaredSize;
|
||||||
|
Header.Status = status;
|
||||||
|
ErrorData = errorData;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ErrorResponse(byte[] buffer, int offset) : base(buffer, offset)
|
public ErrorResponse(byte[] buffer, int offset) : base(buffer, offset)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue