diff --git a/lib/hostip.c b/lib/hostip.c index 43583f4a01ae3b8c0c38ba8ba33a7073950a0932..640780c68bebfd7049c6e25c2a401563e98031a9 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -333,7 +333,7 @@ Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data, /* This seems to be an IPv6-capable stack, use PF_UNSPEC for the widest * possible checks. And close the socket again. */ - close(s); + sclose(s); memset(&hints, 0, sizeof(hints)); hints.ai_family = pf;