summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalvatore Sanfilippo <antirez@gmail.com>2015-09-08 09:24:45 +0200
committerSalvatore Sanfilippo <antirez@gmail.com>2015-09-08 09:24:45 +0200
commit0c62d955383a5df85ec78808cf7b79e94827e427 (patch)
treed5b1120be1e9fa90fba87ba044a8f4e2e2c20a13
parent8e55537459f8be2d4310117f9f36c5a2ffa1451c (diff)
parentef29748d0d758c956f8adca70bc74902b0c2e20c (diff)
downloadredis-0c62d955383a5df85ec78808cf7b79e94827e427.tar.gz
Merge pull request #2695 from rogerlz/unstable
redis-sentinel crash if ckquorum command is executed without args
-rw-r--r--src/sentinel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sentinel.c b/src/sentinel.c
index 05b4f0398..38e987cd6 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -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);