Skip to content

Commit

Permalink
Fix: bug in queue admin command validation (#559)
Browse files Browse the repository at this point in the history
Fuzz tests caught this; the `if` block is never being executed.

Signed-off-by: Chris Beard <[email protected]>
  • Loading branch information
chrisbeard authored Jan 9, 2025
1 parent 8adc108 commit ebddab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/groups/mqb/mqbcmd/mqbcmd_parseutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ int parseDomainQueue(DomainQueue* queue,

const bslstl::StringRef subcommand = next();

if (name.empty()) {
if (subcommand.empty()) {
*error = "DOMAINS DOMAIN <name> QUEUE <queue_name> command must have "
"a subcommand, such as PURGE, INTERNALS, or LIST.";
return -1; // RETURN
Expand Down

0 comments on commit ebddab2

Please sign in to comment.