diff --git a/src/anet.c b/src/anet.c index d46ce5398..7a0a1b1ed 100644 --- a/src/anet.c +++ b/src/anet.c @@ -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;