Explorar el Código

Bugfix: SCSI Data-In PDU was sent without ExpCmdSN / MaxCmdSN being set

Tal Aloni hace 8 años
padre
commit
2da8c805ac
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ISCSI/Server/PDUHelper.cs

+ 1 - 1
ISCSI/Server/PDUHelper.cs

@@ -95,7 +95,7 @@ namespace ISCSI.Server
                 ((TextResponsePDU)pdu).ExpCmdSN = expCmdSN;
                 ((TextResponsePDU)pdu).MaxCmdSN = maxCmdSN;
             }
-            else if (pdu is SCSIDataInPDU && ((SCSIDataInPDU)pdu).StatusPresent) // RFC 3720: StatSN [..] only have meaningful content if the S bit is set to 1
+            else if (pdu is SCSIDataInPDU)
             {
                 ((SCSIDataInPDU)pdu).ExpCmdSN = expCmdSN;
                 ((SCSIDataInPDU)pdu).MaxCmdSN = maxCmdSN;