mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
Sentinel: check arity for SENTINEL MASTER command.
This fixes issue #1530.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user