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
b38f5216
Unverified
Commit
b38f5216
authored
Mar 22, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Mar 22, 2018
Browse files
Merge pull request #4777 from soloestoy/avoid-double-close
anet: avoid double close
parents
3163c9cb
46f767aa
Changes
1
Show whitespace changes
Inline
Side-by-side
src/anet.c
View file @
b38f5216
...
...
@@ -484,7 +484,7 @@ static int _anetTcpServer(char *err, int port, char *bindaddr, int af, int backl
if
(
af
==
AF_INET6
&&
anetV6Only
(
err
,
s
)
==
ANET_ERR
)
goto
error
;
if
(
anetSetReuseAddr
(
err
,
s
)
==
ANET_ERR
)
goto
error
;
if
(
anetListen
(
err
,
s
,
p
->
ai_addr
,
p
->
ai_addrlen
,
backlog
)
==
ANET_ERR
)
goto
error
;
if
(
anetListen
(
err
,
s
,
p
->
ai_addr
,
p
->
ai_addrlen
,
backlog
)
==
ANET_ERR
)
s
=
ANET_ERR
;
goto
end
;
}
if
(
p
==
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