From: wessels <> Date: Fri, 12 Jul 1996 04:43:44 +0000 (+0000) Subject: - Fixed bug when removing a neighbor. Forgetting to decrement X-Git-Tag: SQUID_3_0_PRE1~6076 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e1788b9d095528f81e19cf5d3f5ffcc5e428c72;p=thirdparty%2Fsquid.git - Fixed bug when removing a neighbor. Forgetting to decrement friends->n causes a duplicate ICP query to be sent in neighborsUdpPing(). --- diff --git a/src/neighbors.cc b/src/neighbors.cc index 9b52f1de93..dd0c216f81 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,5 +1,5 @@ /* - * $Id: neighbors.cc,v 1.25 1996/07/11 17:42:45 wessels Exp $ + * $Id: neighbors.cc,v 1.26 1996/07/11 22:43:44 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -338,6 +338,7 @@ void neighborRemove(target) if (e) { *E = e->next; safe_free(e); + friends->n--; } }