Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3ff1bb4b
You need to sign in or sign up before continuing.
Commit
3ff1bb4b
authored
Jan 31, 2014
by
antirez
Browse files
Sentinel: check arity for SENTINEL MASTER command.
This fixes issue #1530.
parent
6c9359ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
3ff1bb4b
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment