From: Ondrej Zajicek Date: Fri, 14 Nov 2008 22:03:15 +0000 (+0100) Subject: Fixes feeding of new protocol, only preferred routes are announced. X-Git-Tag: v1.2.0~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=258d0ad4ca550895a1ef20fc478c0160be5374f2;p=thirdparty%2Fbird.git Fixes feeding of new protocol, only preferred routes are announced. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index f7f379b83..2af343078 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;