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

Fixed regression in route feeding.

We were, once again, forgetting to mark empty-net journal entries as
processed, as was fixed in 32bb548c11.

Introduced in 548dbb2252.
Caught by cf-ebgp-graceful.
This commit is contained in:
Maria Matejka 2024-01-30 21:29:00 +01:00
parent 000dbf737c
commit 95adf7b0fa

View File

@ -4280,10 +4280,16 @@ rt_feed_by_fib(void *data)
for (; c->feed_index < tab->routes_block_size; c->feed_index++)
{
net *n = &tab->routes[c->feed_index];
if (!n->routes)
const net_addr *a;
if (n->routes)
a = n->routes->rte.net;
else if (!n->first)
continue;
else if (n->first->old)
a = n->first->old->rte.net;
else
a = n->first->new->rte.net;
const net_addr *a = n->routes->rte.net;
if (rt_prefilter_net(&c->h.req->prefilter, a))
{
if (!rt_prepare_feed(c, n, &block))