From: wessels <> Date: Wed, 4 Oct 2000 07:13:25 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1843 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64b8103bc736f5b6a57eee0537b60c2ffa812502;p=thirdparty%2Fsquid.git DW: - Make neighborUp() return FALSE if we don't have any IP address(es) for the peer. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index 3b5d860b80..a98e7b84d5 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -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; }