]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra : blackhole_type was not set correctly in recursive routes
authorvdhingra <vdhingra@vmware.com>
Tue, 13 Aug 2019 05:56:38 +0000 (22:56 -0700)
committervdhingra <vdhingra@vmware.com>
Tue, 13 Aug 2019 07:47:23 +0000 (00:47 -0700)
If there is a recursive route resolved over blackhole route, then
the resolved blackhole_type is not getting set correctly.
This fix updates the bh_type correctly for resursive routes.

Signed-off-by: vishaldhingra <vdhingra@vmware.com>
zebra/zebra_nhg.c

index 977e3bba79e37e13b6284c6bd86495ce6e5c7445..f4b86f3cfe96dd064ddce855f05e3f91a46406ef 100644 (file)
@@ -87,7 +87,7 @@ static void nexthop_set_resolved(afi_t afi, const struct nexthop *newhop,
                break;
        case NEXTHOP_TYPE_BLACKHOLE:
                resolved_hop->type = NEXTHOP_TYPE_BLACKHOLE;
-               resolved_hop->bh_type = nexthop->bh_type;
+               resolved_hop->bh_type = newhop->bh_type;
                break;
        }