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
cf3d79d4
Unverified
Commit
cf3d79d4
authored
Dec 09, 2020
by
Yossi Gottlieb
Committed by
GitHub
Dec 09, 2020
Browse files
Fix double close on IPv6 setup error. (#8168)
Fixes #8165.
parent
6a3c4ac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/anet.c
View file @
cf3d79d4
...
...
@@ -470,7 +470,6 @@ static int anetV6Only(char *err, int s) {
int
yes
=
1
;
if
(
setsockopt
(
s
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
&
yes
,
sizeof
(
yes
))
==
-
1
)
{
anetSetError
(
err
,
"setsockopt: %s"
,
strerror
(
errno
));
close
(
s
);
return
ANET_ERR
;
}
return
ANET_OK
;
...
...
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