From: Ondrej Zajicek Date: Tue, 11 Aug 2009 08:54:50 +0000 (+0200) Subject: Fixes bug that caused losing of some routes. X-Git-Tag: v1.2.0~37^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=024e633c16cf21ae94d7e023e057e59080f92175;p=thirdparty%2Fbird.git Fixes bug that caused losing of some routes. When update changes preferred route in such a way that it ceased to be preferred, the new route was linked to wrong place and lost. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index fb2feacaf..72138362f 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -464,8 +464,8 @@ rte_recalculate(rtable *table, net *net, struct proto *p, struct proto *src, rte } if (new) /* Link in the new non-optimal route */ { - new->next = old_best->next; - old_best->next = new; + new->next = net->routes->next; + net->routes->next = new; rte_trace_in(D_ROUTES, p, new, "added"); } else if (old && (p->debug & D_ROUTES))