Commit 95b1a640 authored by Max Kellermann's avatar Max Kellermann

DatabaseCommands: disallow "grouping" by the selected tag

Fixes assertion failure.
parent ecc12c9b
......@@ -234,6 +234,13 @@ handle_list(Client &client, int argc, char *argv[])
}
}
if (tagType < TAG_NUM_OF_ITEM_TYPES &&
group_mask & (1u << tagType)) {
delete filter;
command_error(client, ACK_ERROR_ARG, "Conflicting group");
return CommandResult::ERROR;
}
Error error;
CommandResult ret =
listAllUniqueTags(client, tagType, group_mask, filter, error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment