From db6984c43c47bfb549394f6571f024df301b19ee Mon Sep 17 00:00:00 2001
From: Martin Mares <mj@ucw.cz>
Date: Mon, 26 Oct 1998 15:01:04 +0000
Subject: [PATCH] rte_update: Doesn't loop forever when multiple routes point
 to the same destination.

---
 nest/rt-table.c | 1 +
 1 file changed, 1 insertion(+)

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;