mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-14 19:23:46 +02:00
SMB2Command: Bugfix: ReadResponse returned ErrorResponse instead of QueryInfoResponse when status was STATUS_BUFFER_OVERFLOW
This commit is contained in:
parent
68cc57e9a8
commit
994fd1f644
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
/* Copyright (C) 2017-2019 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
|
||||||
*
|
*
|
||||||
* You can redistribute this program and/or modify it under the terms of
|
* You can redistribute this program and/or modify it under the terms of
|
||||||
* the GNU Lesser Public License as published by the Free Software Foundation,
|
* the GNU Lesser Public License as published by the Free Software Foundation,
|
||||||
|
@ -441,7 +441,7 @@ namespace SMBLibrary.SMB2
|
||||||
if (structureSize == QueryInfoResponse.DeclaredSize)
|
if (structureSize == QueryInfoResponse.DeclaredSize)
|
||||||
{
|
{
|
||||||
NTStatus status = (NTStatus)LittleEndianConverter.ToUInt32(buffer, offset + 8);
|
NTStatus status = (NTStatus)LittleEndianConverter.ToUInt32(buffer, offset + 8);
|
||||||
if (status == NTStatus.STATUS_SUCCESS)
|
if (status == NTStatus.STATUS_SUCCESS || status == NTStatus.STATUS_BUFFER_OVERFLOW)
|
||||||
{
|
{
|
||||||
return new QueryInfoResponse(buffer, offset);
|
return new QueryInfoResponse(buffer, offset);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue