]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Wed, 8 Nov 2000 05:04:38 +0000 (05:04 +0000)
committerwessels <>
Wed, 8 Nov 2000 05:04:38 +0000 (05:04 +0000)
 - Don't send ICP queries to neighbors when the ICP port is zero.

src/neighbors.cc

index bd0a1a95f405612a048454bd6444da506fca3f2a..6e8e20f7e857010b3fa5bb24b6e31992c692dbf9 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: neighbors.cc,v 1.287 2000/10/31 23:48:14 wessels Exp $
+ * $Id: neighbors.cc,v 1.288 2000/11/07 22:04:38 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -166,6 +166,8 @@ peerWouldBePinged(const peer * p, request_t * request)
        return 0;
     if (p->n_addresses == 0)
        return 0;
+    if (p->icp.port == 0)
+       return 0;
     /* the case below seems strange, but can happen if the
      * URL host is on the other side of a firewall */
     if (p->type == PEER_SIBLING)