mirror of
https://github.com/fluencelabs/redis
synced 2025-04-30 13:02:14 +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> */
|
/* SENTINEL MASTER <name> */
|
||||||
sentinelRedisInstance *ri;
|
sentinelRedisInstance *ri;
|
||||||
|
|
||||||
|
if (c->argc != 3) goto numargserr;
|
||||||
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
|
||||||
== NULL) return;
|
== NULL) return;
|
||||||
addReplySentinelRedisInstance(c,ri);
|
addReplySentinelRedisInstance(c,ri);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user