Browse Source

Bugfix: StatSN was not advanced after NOP-In response

Tal Aloni 7 years ago
parent
commit
888360f43f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ISCSI/ISCSI.Server/ISCSIServer.cs

+ 2 - 1
ISCSI/ISCSI.Server/ISCSIServer.cs

@@ -365,7 +365,8 @@ namespace ISCSI.Server
                 {
                     PDUHelper.SetExpCmdSN(response, state.Session.ExpCmdSN, state.Session.ExpCmdSN + state.Session.CommandQueueSize);
                 }
-                if (response is SCSIResponsePDU ||
+                if ((response is NOPInPDU && ((NOPInPDU)response).InitiatorTaskTag != 0xffffffff) ||
+                    response is SCSIResponsePDU ||
                     response is LoginResponsePDU ||
                     response is TextResponsePDU ||
                     (response is SCSIDataInPDU && ((SCSIDataInPDU)response).StatusPresent) ||