Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
4b2e374e
Commit
4b2e374e
authored
Oct 17, 2012
by
Geoff Garside
Committed by
antirez
Jul 11, 2013
Browse files
Update calls to anetResolve to include buffer size
parent
3570411d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
4b2e374e
...
...
@@ -426,7 +426,7 @@ sentinelAddr *createSentinelAddr(char *hostname, int port) {
errno
=
EINVAL
;
return
NULL
;
}
if
(
anetResolve
(
NULL
,
hostname
,
buf
)
==
ANET_ERR
)
{
if
(
anetResolve
(
NULL
,
hostname
,
buf
,
sizeof
(
buf
)
)
==
ANET_ERR
)
{
errno
=
ENOENT
;
return
NULL
;
}
...
...
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