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
2345cee3
Commit
2345cee3
authored
Oct 17, 2012
by
Geoff Garside
Committed by
antirez
Jul 08, 2013
Browse files
Update calls to anetResolve to include buffer size
parent
ee5a6df1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sentinel.c
View file @
2345cee3
...
@@ -426,7 +426,7 @@ sentinelAddr *createSentinelAddr(char *hostname, int port) {
...
@@ -426,7 +426,7 @@ sentinelAddr *createSentinelAddr(char *hostname, int port) {
errno
=
EINVAL
;
errno
=
EINVAL
;
return
NULL
;
return
NULL
;
}
}
if
(
anetResolve
(
NULL
,
hostname
,
buf
)
==
ANET_ERR
)
{
if
(
anetResolve
(
NULL
,
hostname
,
buf
,
sizeof
(
buf
)
)
==
ANET_ERR
)
{
errno
=
ENOENT
;
errno
=
ENOENT
;
return
NULL
;
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