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; *k = r->next;
break; break;
} }
k = &r->next;
} }
r->next = net->routes; r->next = net->routes;
net->routes = r; net->routes = r;