]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Wed, 4 Oct 2000 07:13:25 +0000 (07:13 +0000)
committerwessels <>
Wed, 4 Oct 2000 07:13:25 +0000 (07:13 +0000)
 - Make neighborUp() return FALSE if we don't have any IP address(es)
   for the peer.

src/neighbors.cc

index 3b5d860b8010f81488bc1b805a2fec807172339f..a98e7b84d5cdc838076696f21d3aeb9d34378b35 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: neighbors.cc,v 1.284 2000/05/16 07:06:05 wessels Exp $
+ * $Id: neighbors.cc,v 1.285 2000/10/04 01:13:25 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -902,6 +902,12 @@ neighborUp(const peer * p)
     if (p->stats.probe_start != 0 &&
        squid_curtime - p->stats.probe_start > Config.Timeout.deadPeer)
        return 0;
+    /*
+     * The peer can not be UP if we don't have any IP addresses
+     * for it.
+     */
+    if (0 == p->n_addresses)
+       return 0;
     return 1;
 }