From 8d20c3aa97c3496443d8761d4a431f8368e9512b Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Sun, 27 Oct 2024 09:02:52 +0100 Subject: [PATCH] Reject CMDDT --- cpp/base/primary_device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/base/primary_device.cpp b/cpp/base/primary_device.cpp index 6c54dc42..4a7caca7 100644 --- a/cpp/base/primary_device.cpp +++ b/cpp/base/primary_device.cpp @@ -128,8 +128,8 @@ void PrimaryDevice::TestUnitReady() void PrimaryDevice::Inquiry() { - // EVPD and page code check - if ((GetCdbByte(1) & 0x01) || GetCdbByte(2)) { + // EVPD, CMDDT and page code check + if ((GetCdbByte(1) & 0x03) || GetCdbByte(2)) { throw scsi_exception(sense_key::illegal_request, asc::invalid_field_in_cdb); }