SMB2: Improved ERROR response implementation

This commit is contained in:
Tal Aloni 2017-09-26 00:50:39 +03:00
parent e6e7bbe412
commit 204c912074

View file

@ -33,8 +33,16 @@ namespace SMBLibrary.SMB2
public ErrorResponse(SMB2CommandName commandName, NTStatus status) : base(commandName)
{
Header.IsResponse = true;
Header.Status = status;
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)