summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2023-11-25 23:42:16 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2023-11-25 23:42:16 +0100
commit9aaa6d630b2fc7e8ba37a5fdec60215e85b94eec (patch)
tree3d1812c66d9f74bdbe137a89e2d2a21616895d33 /nest/rt-table.c
parentc6ba5e39e20a1c7082453668e7b4d2323d9a4e78 (diff)
parent9b775859cd7fd54a6fe2bd88359955fce079999d (diff)
Merge commit '9b775859' into wireguard-next-tmp7-1
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 6eaee069..e497524f 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -1614,7 +1614,14 @@ rte_update2(struct channel *c, const net_addr *n, rte *new, struct rte_src *src)
}
if (p->mpls_map)
- mpls_handle_rte(p->mpls_map, n, new, rte_update_pool, &fec);
+ {
+ if (mpls_handle_rte(p->mpls_map, n, new, rte_update_pool, &fec) < 0)
+ {
+ rte_trace_in(D_FILTERS, c, new, "invalid");
+ stats->imp_updates_invalid++;
+ goto drop;
+ }
+ }
if (!rta_is_cached(new->attrs)) /* Need to copy attributes */
new->attrs = rta_lookup(new->attrs);