]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
rte_update: Doesn't loop forever when multiple routes point to the same
authorMartin Mares <mj@ucw.cz>
Mon, 26 Oct 1998 15:01:04 +0000 (15:01 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 26 Oct 1998 15:01:04 +0000 (15:01 +0000)
destination.

nest/rt-table.c

index 06ee1d3d647bd26ba5d98b56c82a13a3c4180c1d..b80365dfd6b9654638e8ed61d6909e93b4370b56 100644 (file)
@@ -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;