mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
use sclose() to close sockets
This commit is contained in:
parent
ef436bdbe8
commit
53a9fdf078
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user