0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 20:58:44 +00:00

Nest: Fix bug in export table

Exported route may be in modified state, we need to get cached one for
rte_same() and rta_clone() to work properly.
This commit is contained in:
Ondrej Zajicek (work) 2019-10-31 01:16:17 +01:00
parent a7af13730b
commit b2dbd9f0cc

View File

@ -2589,6 +2589,9 @@ rte_update_out(struct channel *c, const net_addr *n, rte *new, rte *old0, int re
{ {
net = net_get(tab, n); net = net_get(tab, n);
src = new->attrs->src; src = new->attrs->src;
if (!rta_is_cached(new->attrs))
new->attrs = rta_lookup(new->attrs);
} }
else else
{ {