Skip to content

Commit

Permalink
Reject CMDDT
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Oct 27, 2024
1 parent 0f16477 commit 8d20c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/base/primary_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8d20c3a

Please sign in to comment.