From 51ad41f2fc0c95179cb4ba65e568d2b84de32a28 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 3 Mar 1999 20:56:33 +0000 Subject: EFence helped to find using of already free rte's in rt_prune(). --- nest/rt-table.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nest/rt-table.c b/nest/rt-table.c index 621a835..4da6807 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -328,11 +328,13 @@ rt_prune(rtable *tab) net *n = (net *) f; rte *e; ncnt++; + rescan: for (e=n->routes; e; e=e->next, rcnt++) if (e->attrs->proto->core_state != FS_HAPPY) { rte_discard(e); rdel++; + goto rescan; } if (!n->routes) /* Orphaned FIB entry? */ { -- cgit v1.2.3