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
4e062ec8
Commit
4e062ec8
authored
Aug 06, 2014
by
Eiichi Sato
Committed by
antirez
Aug 26, 2014
Browse files
Sentinel: fix bufsize to support IPv6 address
Closes #1914
parent
ef2cb6c7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
4e062ec8
...
...
@@ -456,7 +456,7 @@ void sentinelIsRunning(void) {
* EINVAL: Invalid port number.
*/
sentinelAddr *createSentinelAddr(char *hostname, int port) {
char buf[
32
];
char buf[
REDIS_IP_STR_LEN
];
sentinelAddr *sa;
if (port <= 0 || port > 65535) {
...
...
@@ -2690,7 +2690,7 @@ void sentinelCommand(redisClient *c) {
/* SENTINEL MONITOR <name> <ip> <port> <quorum> */
sentinelRedisInstance *ri;
long quorum, port;
char buf[
32
];
char buf[
REDIS_IP_STR_LEN
];
if (c->argc != 6) goto numargserr;
if (getLongFromObjectOrReply(c,c->argv[5],&quorum,"Invalid quorum")
...
...
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