0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 12:48:43 +00:00

Nest: Fix export of tmpattrs through pipes

In most cases of export there is no need to store back temporary
attributes to rte, as receivers (protocols) access eattr list anyway.
But pipe copies the original rte with old values, so we should store
tmpattrs also during export.

Thanks to Paul Donohue for the bugreport.
This commit is contained in:
Ondrej Zajicek (work) 2021-06-14 16:30:59 +02:00
parent 3f19100f5a
commit f8e273b5e7

View File

@ -618,6 +618,9 @@ export_filter_(struct channel *c, rte *rt0, rte **rt_free, linpool *pool, int si
goto reject;
}
/* Needed for pipes */
rte_store_tmp_attrs(rt, pool, NULL);
accept:
if (rt != rt0)
*rt_free = rt;