mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
rte_update: Doesn't loop forever when multiple routes point to the same
destination.
This commit is contained in:
@@ -186,6 +186,7 @@ rte_update(net *net, struct proto *p, rte *new)
|
||||
*k = r->next;
|
||||
break;
|
||||
}
|
||||
k = &r->next;
|
||||
}
|
||||
r->next = net->routes;
|
||||
net->routes = r;
|
||||
|
||||
Reference in New Issue
Block a user