summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index fb2feaca..72138362 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -464,8 +464,8 @@ rte_recalculate(rtable *table, net *net, struct proto *p, struct proto *src, rte
}
if (new) /* Link in the new non-optimal route */
{
- new->next = old_best->next;
- old_best->next = new;
+ new->next = net->routes->next;
+ net->routes->next = new;
rte_trace_in(D_ROUTES, p, new, "added");
}
else if (old && (p->debug & D_ROUTES))