From: wessels <> Date: Sat, 24 Aug 1996 03:18:56 +0000 (+0000) Subject: check swap_status in neighborsUdpPing() X-Git-Tag: SQUID_3_0_PRE1~5934 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a11fc0d2f400f472c7b7bf93315ea517f63587e5;p=thirdparty%2Fsquid.git check swap_status in neighborsUdpPing() --- diff --git a/src/neighbors.cc b/src/neighbors.cc index c90df27450..f72139bcb2 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,5 +1,5 @@ /* - * $Id: neighbors.cc,v 1.41 1996/08/14 22:57:12 wessels Exp $ + * $Id: neighbors.cc,v 1.42 1996/08/23 21:18:56 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -422,6 +422,8 @@ int neighborsUdpPing(proto) return 0; for (i = 0, e = friends->first_ping; i++ < friends->n; e = e->next) { + if (entry->swap_status != NO_SWAP) + fatal_dump("neighborsUdpPing: bad swap_status"); if (e == (edge *) NULL) e = friends->edges_head; debug(15, 5, "neighborsUdpPing: Edge %s\n", e->host);