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 <iryzhov@nfware.com>
This commit is contained in:
Igor Ryzhov 2022-03-29 18:09:53 +03:00
parent f06b9fee95
commit 68618ebca8

View File

@ -1440,6 +1440,7 @@ void ospf6_asbr_redistribute_add(int type, ifindex_t ifindex,
/* apply route-map */ /* apply route-map */
if (ROUTEMAP(red)) { if (ROUTEMAP(red)) {
troute.route_option = &tinfo; troute.route_option = &tinfo;
troute.ospf6 = ospf6;
tinfo.ifindex = ifindex; tinfo.ifindex = ifindex;
tinfo.tag = tag; tinfo.tag = tag;