From 67a8803b36c54e1d08a86e9b96b703727c7c850b Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Fri, 8 Dec 2017 03:19:28 +0000 Subject: [PATCH] Added support for list-devices on FreeBSD. --- SCSI/Inquiry.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SCSI/Inquiry.cs b/SCSI/Inquiry.cs index 7f48e53..fc8881b 100644 --- a/SCSI/Inquiry.cs +++ b/SCSI/Inquiry.cs @@ -63,7 +63,7 @@ namespace DiscImageChef.Decoders.SCSI return null; } - if(SCSIInquiryResponse.Length != SCSIInquiryResponse[4] + 5) + if(SCSIInquiryResponse.Length < SCSIInquiryResponse[4] + 5) { DicConsole.DebugWriteLine("SCSI INQUIRY decoder", "INQUIRY response length ({0} bytes) is different than specified in length field ({1} bytes), decoded data can be incorrect, not decoding.", SCSIInquiryResponse.Length, SCSIInquiryResponse[4] + 4); return null;