diff options
author | Martin Mares <mj@ucw.cz> | 1998-10-26 15:01:04 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-10-26 15:01:04 +0000 |
commit | db6984c43c47bfb549394f6571f024df301b19ee (patch) | |
tree | a448ccad893d8283d0380ee1c87588e466417652 | |
parent | dc7c7494e372febc44ae7d1f4ed618a6fe8bf45e (diff) |
rte_update: Doesn't loop forever when multiple routes point to the same
destination.
-rw-r--r-- | nest/rt-table.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index 06ee1d3d..b80365df 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -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; |