summaryrefslogtreecommitdiffstats
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-26 16:01:04 +0100
committerMartin Mares <mj@ucw.cz>1998-10-26 16:01:04 +0100
commitdb6984c43c47bfb549394f6571f024df301b19ee (patch)
treea448ccad893d8283d0380ee1c87588e466417652 /nest/rt-table.c
parentdc7c7494e372febc44ae7d1f4ed618a6fe8bf45e (diff)
downloadbird-db6984c43c47bfb549394f6571f024df301b19ee.tar
bird-db6984c43c47bfb549394f6571f024df301b19ee.zip
rte_update: Doesn't loop forever when multiple routes point to the same
destination.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 06ee1d3..b80365d 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;