diff options
Diffstat (limited to 'nest')
-rw-r--r-- | nest/rt-table.c | 4 |
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; |