From b5d170b55110bacc61a4aa8bf99df1afc303c5dc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 16 May 2011 23:46:43 +0200 Subject: CLOSESOCKETFUNCTION: added Introduced the initial setup to allow closesocket callbacks by making sure sclose() is only ever called from one place in the libcurl source and still run all test cases fine. --- lib/hostip6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/hostip6.c') diff --git a/lib/hostip6.c b/lib/hostip6.c index b847f5953..b944401c5 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -125,7 +125,7 @@ bool Curl_ipv6works(void) ipv6_works = 0; else { ipv6_works = 1; - sclose(s); + Curl_closesocket(NULL, s); } } return (ipv6_works>0)?TRUE:FALSE; -- cgit v1.2.3