From e48dae3ed70daf52ad93c4fdc73270ab1510661f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 May 2000 14:51:26 +0000 Subject: Stop feeding the protocol if it suddenly shuts down. --- nest/rt-table.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nest/rt-table.c') diff --git a/nest/rt-table.c b/nest/rt-table.c index 2cf675ad..975874a0 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -209,6 +209,8 @@ rt_feed_baby(struct proto *p) ea_list *tmpa = q->make_tmp_attrs ? q->make_tmp_attrs(e, rte_update_pool) : NULL; do_rte_announce(h, n, e, NULL, tmpa, ipa_classify(n->n.prefix)); lp_flush(rte_update_pool); + if (p->core_state != FS_FEEDING) + return; /* In the meantime, the protocol fell down. */ } } FIB_WALK_END; -- cgit v1.2.3