mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Sentinel: check arity for SENTINEL MASTER command.
This fixes issue #1530.
This commit is contained in:
parent
6c9359add1
commit
3ff1bb4b2e
@ -2384,6 +2384,7 @@ void sentinelCommand(redisClient *c) {
|
||||
/* SENTINEL MASTER <name> */
|
||||
sentinelRedisInstance *ri;
|
||||
|
||||
if (c->argc != 3) goto numargserr;
|
||||
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
||||
== NULL) return;
|
||||
addReplySentinelRedisInstance(c,ri);
|
||||
|
Loading…
Reference in New Issue
Block a user