Fix error handling when target ID for INQUIRY is missing

This commit is contained in:
Uwe Seimet 2023-10-31 16:22:55 +01:00
parent 5465cfc350
commit 464e20413a
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ void ScsiDump::ParseArguments(span<char *> args)
throw parser_exception("Missing filename");
}
if (!scan_bus && !inquiry && target_id == -1) {
if (!scan_bus && target_id == -1) {
throw parser_exception("Missing target ID");
}