rte_update: Doesn't loop forever when multiple routes point to the same
destination.
This commit is contained in:
parent
dc7c7494e3
commit
db6984c43c
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue