Merge pull request #2695 from rogerlz/unstable

redis-sentinel crash if ckquorum command is executed without args
This commit is contained in:
Salvatore Sanfilippo 2015-09-08 09:24:45 +02:00
commit 0c62d95538

View File

@ -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);