From: Amos Jeffries Date: Thu, 3 Jul 2008 02:51:24 +0000 (+1200) Subject: Windows port: cachemgr.cgi should use closesocket not close X-Git-Tag: SQUID_3_1_0_1~49^2~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d52318dffe89092328aa432138394b7bdd808067;p=thirdparty%2Fsquid.git Windows port: cachemgr.cgi should use closesocket not close This bug was apparently fixed in 2.6 but not in 3.0. It only affects Windows builds. --- diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index 54ee12cf4e..29eb93a99b 100644 --- a/tools/cachemgr.cc +++ b/tools/cachemgr.cc @@ -610,12 +610,11 @@ read_reply(int s, cachemgr_request * req) #ifdef _SQUID_MSWIN_ perror(tmpfile); xfree(tmpfile); + closesocket(s); #else - perror("fdopen"); -#endif - close(s); +#endif return 1; }