From f0652c37a5dbca5e53d2df5aa1c14a521db5de69 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 d097a604..fee3153f 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2386,6 +2386,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);