Skip to content

Commit

Permalink
Sentinel: check arity for SENTINEL MASTER command.
Browse files Browse the repository at this point in the history
This fixes issue #1530.
  • Loading branch information
antirez committed Jan 31, 2014
1 parent a2c9d38 commit f0652c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sentinel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f0652c3

Please sign in to comment.