Commit db6984c4 authored by Martin Mareš's avatar Martin Mareš

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

destination.
parent dc7c7494
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment