From 258d0ad4ca550895a1ef20fc478c0160be5374f2 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 14 Nov 2008 23:03:15 +0100 Subject: Fixes feeding of new protocol, only preferred routes are announced. --- nest/rt-table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest/rt-table.c') diff --git a/nest/rt-table.c b/nest/rt-table.c index f7f379b8..2af34307 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; -- cgit v1.2.3