summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2008-11-14 23:03:15 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2008-11-14 23:03:15 +0100
commit258d0ad4ca550895a1ef20fc478c0160be5374f2 (patch)
tree755860dfb2d1dfc4951fd15cd0232f510b37579b
parent3f670371cfeef155256a8a77ac5581accee13b05 (diff)
downloadbird-258d0ad4ca550895a1ef20fc478c0160be5374f2.tar
bird-258d0ad4ca550895a1ef20fc478c0160be5374f2.zip
Fixes feeding of new protocol, only preferred routes are announced.
-rw-r--r--nest/rt-table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index f7f379b..2af3430 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -851,13 +851,13 @@ again:
FIB_ITERATE_START(&h->table->fib, fit, fn)
{
net *n = (net *) fn;
- rte *e;
+ rte *e = n->routes;
if (max_feed <= 0)
{
FIB_ITERATE_PUT(fit, fn);
return 0;
}
- for(e=n->routes; e; e=e->next)
+ if (e)
{
struct proto *q = e->attrs->proto;
ea_list *tmpa;