Commit b3fe9e03 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't repeatedly reinstall blackhole routes.

parent b6dfc76c
......@@ -292,8 +292,7 @@ update_route_metric(struct route *route)
metric = MIN(route->refmetric + neighbour_cost(route->nexthop),
INFINITY);
if(route->installed &&
(metric >= INFINITY ||
metric_to_kernel(route->metric) != metric_to_kernel(metric))) {
metric_to_kernel(route->metric) != metric_to_kernel(metric)) {
uninstall_route(route);
install = 1;
}
......
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