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
hiredis
Commits
94c1985b
Commit
94c1985b
authored
Apr 08, 2021
by
Kristján Valur Jónsson
Committed by
michael-grunder
Jun 26, 2022
Browse files
Use correct type for getsockopt()
parent
5e002bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
net.c
View file @
94c1985b
...
...
@@ -281,8 +281,8 @@ int redisCheckConnectDone(redisContext *c, int *completed) {
if
(
error
==
EINPROGRESS
)
{
/* must check error to see if connect failed. Get the socket error */
int
fail
,
so_error
,
optlen
;
optlen
=
sizeof
(
so_error
);
int
fail
,
so_error
;
socklen_t
optlen
=
sizeof
(
so_error
);
fail
=
getsockopt
(
c
->
fd
,
SOL_SOCKET
,
SO_ERROR
,
&
so_error
,
&
optlen
);
if
(
fail
==
0
)
{
if
(
so_error
==
0
)
{
...
...
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