mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 07:23:41 +00:00
Merge pull request #8106 from donaldsharp/fix_bad_interaction
bgpd: Fix crash when we don't have a nexthop
This commit is contained in:
commit
1d73eba70d
@ -970,7 +970,7 @@ static void evaluate_paths(struct bgp_nexthop_cache *bnc)
|
|||||||
/*
|
/*
|
||||||
* Peering cannot occur across a blackhole nexthop
|
* Peering cannot occur across a blackhole nexthop
|
||||||
*/
|
*/
|
||||||
if (bnc->nexthop_num == 1
|
if (bnc->nexthop_num == 1 && bnc->nexthop
|
||||||
&& bnc->nexthop->type == NEXTHOP_TYPE_BLACKHOLE) {
|
&& bnc->nexthop->type == NEXTHOP_TYPE_BLACKHOLE) {
|
||||||
peer->last_reset = PEER_DOWN_WAITING_NHT;
|
peer->last_reset = PEER_DOWN_WAITING_NHT;
|
||||||
valid_nexthops = 0;
|
valid_nexthops = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user