aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-22 23:53:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-22 23:53:49 +0000
commit53a9fdf078a96ccca2ef8c7f163fc8a5f58a7f32 (patch)
treeba408307690acd35ca9078d324c3b55a9aa474fa /lib
parentef436bdbe8a28626e11462d77b66f6b4bb36d737 (diff)
use sclose() to close sockets
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 43583f4a0..640780c68 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;