]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: fix crash when applying a route-map on a temporary route 10930/head
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 29 Mar 2022 15:09:53 +0000 (18:09 +0300)
committermergify-bot <noreply@mergify.com>
Wed, 30 Mar 2022 12:29:03 +0000 (12:29 +0000)
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>
(cherry picked from commit 68618ebca80938445959eb62e08f8ede67b53e0d)

ospf6d/ospf6_asbr.c

index 5e7ba81a3330b75d80b07838aebcbdba763a03a2..d3a24ef4d4df5fd76bd114ad98f4cebaec2a597a 100644 (file)
@@ -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;