From 2dc359a66e0f79fe778156fc8b712167d1be3c7e Mon Sep 17 00:00:00 2001 From: vdhingra Date: Mon, 12 Aug 2019 22:56:38 -0700 Subject: [PATCH] zebra : blackhole_type was not set correctly in recursive routes 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 --- zebra/zebra_nhg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 977e3bba79..f4b86f3cfe 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -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; }