Unverified Commit 156599ba authored by Wen Hui's avatar Wen Hui Committed by GitHub
Browse files

Fix SENTINEL SET to require arguments (#9037)

parent b512dfe7
......@@ -3767,7 +3767,7 @@ NULL
addReplySds(c,e);
}
} else if (!strcasecmp(c->argv[1]->ptr,"set")) {
if (c->argc < 3) goto numargserr;
if (c->argc <= 3) goto numargserr;
sentinelSetCommand(c);
} else if (!strcasecmp(c->argv[1]->ptr,"config")) {
if (c->argc < 3) goto numargserr;
......
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