Commit 74b7afdf authored by antirez's avatar antirez
Browse files

ACL: check arity of LIST / USERS subcommand.

parent bc9b118e
...@@ -973,7 +973,9 @@ void aclCommand(client *c) { ...@@ -973,7 +973,9 @@ void aclCommand(client *c) {
addReplyBulkCBuffer(c,thispat,sdslen(thispat)); addReplyBulkCBuffer(c,thispat,sdslen(thispat));
} }
} }
} else if (!strcasecmp(sub,"list") || !strcasecmp(sub,"users")) { } else if ((!strcasecmp(sub,"list") || !strcasecmp(sub,"users")) &&
c->argc == 2)
{
int justnames = !strcasecmp(sub,"users"); int justnames = !strcasecmp(sub,"users");
addReplyArrayLen(c,raxSize(Users)); addReplyArrayLen(c,raxSize(Users));
raxIterator ri; raxIterator ri;
......
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