Explorar o código

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

Tal Aloni %!s(int64=8) %!d(string=hai) anos
pai
achega
2da8c805ac
Modificáronse 1 ficheiros con 1 adicións e 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;