Commit 16c818b5 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Tweak retract_neighbour_routes.

parent 8a495801
......@@ -578,9 +578,10 @@ retract_neighbour_routes(struct neighbour *neigh)
i = 0;
while(i < numroutes) {
if(routes[i].neigh == neigh) {
if(routes[i].refmetric != INFINITY) {
unsigned short oldmetric = route_metric(&routes[i]);
if(oldmetric != INFINITY) {
retract_route(&routes[i]);
if(oldmetric != INFINITY)
route_changed(&routes[i], routes[i].src, oldmetric);
}
}
......
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