diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2021-02-15 10:15:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-15 10:15:21 -0500 |
| commit | f736532d947ccf0048d02c471a74b72b11b3d613 (patch) | |
| tree | e98214768c124a7c7e7497d4a1a571eacdd8a782 | |
| parent | b10e30232e5d7865ecae41f54f15fb3833546ebd (diff) | |
| parent | ab0e0f733d1ec1c571351f3573b7bfad40ce579a (diff) | |
Merge pull request #8081 from ton31337/fix/static_network_vrf
bgpd: Check for peer->su_remote if not NULL when handling IPv6 nexthop
| -rw-r--r-- | bgpd/bgp_zebra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index ca7da8070c..627e996937 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -906,6 +906,7 @@ bgp_path_info_to_ipv6_nexthop(struct bgp_path_info *path, ifindex_t *ifindex) /* Workaround for Cisco's nexthop bug. */ if (IN6_IS_ADDR_UNSPECIFIED( &path->attr->mp_nexthop_global) + && path->peer->su_remote && path->peer->su_remote->sa.sa_family == AF_INET6) { nexthop = |
