From 68618ebca80938445959eb62e08f8ede67b53e0d 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 --- ospf6d/ospf6_asbr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ospf6d/ospf6_asbr.c b/ospf6d/ospf6_asbr.c index 40afd716c7..63444f8e57 100644 --- a/ospf6d/ospf6_asbr.c +++ b/ospf6d/ospf6_asbr.c @@ -1440,6 +1440,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;