mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Stop feeding the protocol if it suddenly shuts down.
This commit is contained in:
parent
9ff8f334ed
commit
e48dae3ed7
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user