mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-03 14:31:49 +02:00
SMBServer: SMB1: Fixed unhandled NullReferenceException when an Invalid FID was specified for a Read / ReadAndX request
This commit is contained in:
parent
0212d71f6a
commit
4ade8c4aa9
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ namespace SMBLibrary.Server.SMB1
|
|||
{
|
||||
state.LogToServer(Severity.Verbose, "Read failed. Invalid FID.");
|
||||
header.Status = NTStatus.STATUS_INVALID_HANDLE;
|
||||
return null;
|
||||
return new ErrorResponse(request.CommandName);
|
||||
}
|
||||
|
||||
if (share is FileSystemShare)
|
||||
|
@ -60,7 +60,7 @@ namespace SMBLibrary.Server.SMB1
|
|||
{
|
||||
state.LogToServer(Severity.Verbose, "Read failed. Invalid FID.");
|
||||
header.Status = NTStatus.STATUS_INVALID_HANDLE;
|
||||
return null;
|
||||
return new ErrorResponse(request.CommandName);
|
||||
}
|
||||
|
||||
if (share is FileSystemShare)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue