diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2015-09-08 09:24:45 +0200 |
---|---|---|
committer | Salvatore Sanfilippo <antirez@gmail.com> | 2015-09-08 09:24:45 +0200 |
commit | 0c62d955383a5df85ec78808cf7b79e94827e427 (patch) | |
tree | d5b1120be1e9fa90fba87ba044a8f4e2e2c20a13 | |
parent | 8e55537459f8be2d4310117f9f36c5a2ffa1451c (diff) | |
parent | ef29748d0d758c956f8adca70bc74902b0c2e20c (diff) | |
download | redis-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.c | 1 |
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); |