mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 08:38:42 +00:00
Fixes bug that caused losing of some routes.
When update changes preferred route in such a way that it ceased to be preferred, the new route was linked to wrong place and lost.
This commit is contained in:
parent
e75d3c74a8
commit
024e633c16
@ -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 */
|
if (new) /* Link in the new non-optimal route */
|
||||||
{
|
{
|
||||||
new->next = old_best->next;
|
new->next = net->routes->next;
|
||||||
old_best->next = new;
|
net->routes->next = new;
|
||||||
rte_trace_in(D_ROUTES, p, new, "added");
|
rte_trace_in(D_ROUTES, p, new, "added");
|
||||||
}
|
}
|
||||||
else if (old && (p->debug & D_ROUTES))
|
else if (old && (p->debug & D_ROUTES))
|
||||||
|
Loading…
Reference in New Issue
Block a user