0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-21 17:21:53 +00:00

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;
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;