htcp-off.patch

From: Miquel van Smoorenburg <list-squid@dont-contact.us>
Date: 14 Jul 1999 14:43:25 +0200

If squid is compiled with HTCP support, you cannot turn it off
in the config file by setting the HTCP port to 0 or -1 as you
can with other protocols. This patch fixes that:

--- squid-2.2.3/src/htcp.c.orig Fri May 28 12:17:31 1999
+++ squid-2.2.3/src/htcp.c Fri May 28 12:19:13 1999
@@ -805,6 +805,8 @@
 void
 htcpInit(void)
 {
+ if (Config.Port.htcp <= 0)
+ return;
     enter_suid();
     htcpInSocket = comm_open(SOCK_DGRAM,
         0,

Mike.

-- 
Beware of Programmers who carry screwdrivers.
-- 
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to miquels@cistron.nl (Miquel van Smoorenburg)
Received on Wed Jul 14 1999 - 06:32:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:23 MST