0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Export: Throw a warning instead of crashing on export_accepted_map inconsistency

This commit is contained in:
Maria Matejka 2024-06-27 13:49:37 +02:00
parent edffd82057
commit c2480ff533

View File

@ -1051,8 +1051,11 @@ rt_notify_basic(struct channel *c, const rte *new, const rte *old)
/* If this is a refeed, we may need to copy the new route to the old one */
if (!old && bmap_test(&c->export_accepted_map, new->id))
{
ASSERT_DIE(rt_export_get_state(&c->out_req) == TES_PARTIAL);
if (rt_export_get_state(&c->out_req) == TES_PARTIAL)
old = new;
else
log(L_WARN "%s.%s: Got new route for %N (id %u) which is already marked accepted, weird",
c->proto->name, c->name, new->net, new->id);
}
/* Run the filters, actually */