Fix SENTINEL SET to require arguments
@@ -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;
