mirror of
https://github.com/fluencelabs/redis
synced 2025-04-30 04:52:13 +00:00
Sentinel: check arity for SENTINEL MASTER command.
This fixes issue #1530.
This commit is contained in:
parent
a2c9d38a9f
commit
f0652c37a5
@ -2386,6 +2386,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…
x
Reference in New Issue
Block a user