0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

EFence helped to find using of already free rte's in rt_prune().

This commit is contained in:
Martin Mares 1999-03-03 20:56:33 +00:00
parent 53b7a2982a
commit 51ad41f2fc

View File

@ -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? */
{