diff options
author | antirez <antirez@gmail.com> | 2014-01-31 10:13:36 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-01-31 10:13:38 +0100 |
commit | 3ff1bb4b2e146f94672967f1a37bd01b83cd6150 (patch) | |
tree | e32eb21e3d9b9ba438d39510020e7397a0e4c2db /src | |
parent | 6c9359add1aace9680c03b9992705dbf5f25edaf (diff) | |
download | redis-3ff1bb4b2e146f94672967f1a37bd01b83cd6150.tar.gz |
Sentinel: check arity for SENTINEL MASTER command.
This fixes issue #1530.
Diffstat (limited to 'src')
-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 46ee96d62..d5d4d928e 100644 --- a/src/sentinel.c +++ b/src/sentinel.c @@ -2384,6 +2384,7 @@ void sentinelCommand(redisClient *c) { /* SENTINEL MASTER <name> */ sentinelRedisInstance *ri; + if (c->argc != 3) goto numargserr; if ((ri = sentinelGetMasterByNameOrReplyError(c,c->argv[2])) == NULL) return; addReplySentinelRedisInstance(c,ri); |