From b2dbd9f0ccd9398df39ecb1e3e2048be33c401d9 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 31 Oct 2019 01:16:17 +0100 Subject: [PATCH] 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. --- nest/rt-table.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nest/rt-table.c b/nest/rt-table.c index 429df0ba..d9e4be8f 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 {