rte_update: Doesn't loop forever when multiple routes point to the same

destination.
This commit is contained in:
Martin Mares 1998-10-26 15:01:04 +00:00
parent dc7c7494e3
commit db6984c43c

View file

@ -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;