From: Ondrej Zajicek (work) Date: Thu, 31 Oct 2019 00:16:17 +0000 (+0100) Subject: Nest: Fix bug in export table X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2dbd9f0ccd9398df39ecb1e3e2048be33c401d9;p=thirdparty%2Fbird.git 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. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index 429df0ba5..d9e4be8ff 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -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); src = new->attrs->src; + + if (!rta_is_cached(new->attrs)) + new->attrs = rta_lookup(new->attrs); } else {