From 3ff1bb4b2e146f94672967f1a37bd01b83cd6150 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 31 Jan 2014 10:13:36 +0100 Subject: [PATCH] Sentinel: check arity for SENTINEL MASTER command. This fixes issue #1530. --- src/sentinel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sentinel.c b/src/sentinel.c index 46ee96d6..d5d4d928 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2384,6 +2384,7 @@ void sentinelCommand(redisClient *c) { /* SENTINEL MASTER */ sentinelRedisInstance *ri; + if (c->argc != 3) goto numargserr; if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2])) == NULL) return; addReplySentinelRedisInstance(c,ri);