From: Martin Mares Date: Mon, 26 Oct 1998 15:01:04 +0000 (+0000) Subject: rte_update: Doesn't loop forever when multiple routes point to the same X-Git-Tag: v1.2.0~1814 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db6984c43c47bfb549394f6571f024df301b19ee;p=thirdparty%2Fbird.git rte_update: Doesn't loop forever when multiple routes point to the same destination. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 06ee1d3d6..b80365dfd 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;