Stop feeding the protocol if it suddenly shuts down.

This commit is contained in:
Martin Mares 2000-05-08 14:51:26 +00:00
parent 9ff8f334ed
commit e48dae3ed7

View file

@ -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; 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)); do_rte_announce(h, n, e, NULL, tmpa, ipa_classify(n->n.prefix));
lp_flush(rte_update_pool); lp_flush(rte_update_pool);
if (p->core_state != FS_FEEDING)
return; /* In the meantime, the protocol fell down. */
} }
} }
FIB_WALK_END; FIB_WALK_END;