Skip to content

Commit

Permalink
Merge pull request #2695 from rogerlz/unstable
Browse files Browse the repository at this point in the history
redis-sentinel crash if ckquorum command is executed without args
  • Loading branch information
antirez committed Sep 8, 2015
2 parents 8e55537 + ef29748 commit 0c62d95
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 @@ -3041,6 +3041,7 @@ void sentinelCommand(client *c) {
sentinelRedisInstance *ri;
int usable;

if (c->argc != 3) goto numargserr;
if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2]))
== NULL) return;
int result = sentinelIsQuorumReachable(ri,&usable);
Expand Down

0 comments on commit 0c62d95

Please sign in to comment.