From: wessels <> Date: Sat, 30 Jan 1999 00:20:56 +0000 (+0000) Subject: NPR bug X-Git-Tag: SQUID_3_0_PRE1~2339 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df503d6cb4a09b28e4b7296928b35f90a5f33ae4;p=thirdparty%2Fsquid.git NPR bug --- diff --git a/src/peer_select.cc b/src/peer_select.cc index f80e40b1c8..3f1194508d 100644 --- a/src/peer_select.cc +++ b/src/peer_select.cc @@ -1,6 +1,6 @@ /* - * $Id: peer_select.cc,v 1.95 1998/12/16 06:34:55 wessels Exp $ + * $Id: peer_select.cc,v 1.96 1999/01/29 17:20:56 wessels Exp $ * * DEBUG: section 44 Peer Selection Algorithm * AUTHOR: Duane Wessels @@ -266,7 +266,9 @@ peerSelectFoo(ps_state * ps) debug(44, 3) ("peerSelectFoo: direct = %s\n", DirectStr[ps->direct]); } - if (entry->ping_status == PING_NONE) { + if (entry == NULL) { + (void) 0; + } else if (entry->ping_status == PING_NONE) { peerGetSomeNeighbor(ps); if (entry->ping_status == PING_WAITING) return;