aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/command.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c
index 1f37cfda6..36587af36 100644
--- a/src/command.c
+++ b/src/command.c
@@ -648,6 +648,12 @@ static int handleList(int fd, int *permission, int argc, char *argv[])
return -1;
}
+ if (tagType == LOCATE_TAG_ANY_TYPE) {
+ commandError(fd, ACK_ERROR_ARG,
+ "\"any\" is not a valid return tag type");
+ return -1;
+ }
+
/* for compatibility with < 0.12.0 */
if (argc == 3) {
if (tagType != TAG_ITEM_ALBUM) {