diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-06-03 13:09:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-03 13:09:27 -0400 |
| commit | c783635c2b271c68b26f0647c778d74cff3eaa7b (patch) | |
| tree | c5b2b006e13f5242fe3141b1151964776d5708c9 | |
| parent | edfdfe201abb16b3a743208d5c47ea8e128e1a47 (diff) | |
| parent | b0e9567ed162da708f8d0b3a3caf87cd03b62e96 (diff) | |
Merge pull request #6508 from RichardWu-Hebut/master
zebra: Fix zebra crashed in building FPM netlink message when bgp sen…
| -rw-r--r-- | zebra/zebra_fpm_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_fpm_netlink.c b/zebra/zebra_fpm_netlink.c index c580fe40d5..b194f80fc7 100644 --- a/zebra/zebra_fpm_netlink.c +++ b/zebra/zebra_fpm_netlink.c @@ -339,7 +339,7 @@ static int netlink_route_info_fill(struct netlink_route_info *ri, int cmd, } /* If there is no useful nexthop then return. */ - if (ri->num_nhs == 0) { + if (ri->rtm_type != RTN_BLACKHOLE && ri->num_nhs == 0) { zfpm_debug("netlink_encode_route(): No useful nexthop."); return 0; } |
