- Make neighborUp() return FALSE if we don't have any IP address(es)
for the peer.
/*
- * $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
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;
}