]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: cachemgr.cgi should use closesocket not close
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Jul 2008 02:51:24 +0000 (14:51 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Jul 2008 02:51:24 +0000 (14:51 +1200)
This bug was apparently fixed in 2.6 but not in 3.0.
It only affects Windows builds.

tools/cachemgr.cc

index 54ee12cf4eb9a36d68f95f288dbb2fbef764046b..29eb93a99b06e5db4ac3e904864d720d9fb8afc6 100644 (file)
@@ -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;
     }