Explorar o código

Server: SMB1: TransactionHelper: Return Transaction2Response instead of ErrorResponse when status is set to STATUS_BUFFER_OVERFLOW

Tal Aloni %!s(int64=6) %!d(string=hai) anos
pai
achega
acb047e65c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SMBLibrary/Server/SMB1/TransactionHelper.cs

+ 1 - 1
SMBLibrary/Server/SMB1/TransactionHelper.cs

@@ -241,7 +241,7 @@ namespace SMBLibrary.Server.SMB1
                 header.Status = NTStatus.STATUS_SMB_BAD_COMMAND;
             }
 
-            if (header.Status != NTStatus.STATUS_SUCCESS)
+            if (header.Status != NTStatus.STATUS_SUCCESS && header.Status != NTStatus.STATUS_BUFFER_OVERFLOW)
             {
                 return new ErrorResponse(CommandName.SMB_COM_TRANSACTION2);
             }