Fix SENTINEL SET to require arguments (#9037)

This commit is contained in:
Wen Hui
2021-06-04 11:33:06 -04:00
committed by GitHub
parent b512dfe794
commit 156599ba2d

View File

@@ -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;