From ef29748d0d758c956f8adca70bc74902b0c2e20c Mon Sep 17 00:00:00 2001 From: Rogerio Goncalves Date: Fri, 24 Jul 2015 14:08:50 +0200 Subject: Check args before run ckquorum. Fix issue #2635 --- src/sentinel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sentinel.c b/src/sentinel.c index 3ff8899d7..9ea2ef629 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -3041,6 +3041,7 @@ void sentinelCommand(redisClient *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); -- cgit v1.2.1