From e9bf4b11dcb0889f79e2c296b69713f280dd5840 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Tue, 29 Mar 2022 18:09:53 +0300 Subject: [PATCH] ospf6d: fix crash when applying a route-map on a temporary route ospf6_routemap_rule_match_interface uses route->ospf6 field for matching so we must fill the field in our temporary variable. Fixes #10911. Signed-off-by: Igor Ryzhov (cherry picked from commit 68618ebca80938445959eb62e08f8ede67b53e0d) --- ospf6d/ospf6_asbr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 5e7ba81a33..d3a24ef4d4 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -1444,6 +1444,7 @@ void ospf6_asbr_redistribute_add(int type, ifindex_t ifindex, /* apply route-map */ if (ROUTEMAP(red)) { troute.route_option = &tinfo; + troute.ospf6 = ospf6; tinfo.ifindex = ifindex; tinfo.tag = tag; -- 2.39.5