summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-08-13 07:10:02 -0400
committerGitHub <noreply@github.com>2019-08-13 07:10:02 -0400
commit3e31782374460a37f02bfa48dc7e48266c7cd238 (patch)
treefb407dee6ada253e3b7e8ab874722998cccffdcf
parentecb73a10e7a9710914aef658d239f42538a881ab (diff)
parent2dc359a66e0f79fe778156fc8b712167d1be3c7e (diff)
Merge pull request #4828 from vishaldhingra/blackhole_type
zebra : blackhole_type was not set correctly in recursive routes
-rw-r--r--zebra/zebra_nhg.c2
1 files changed, 1 insertions, 1 deletions
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;
}