mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 06:34:44 +00:00
bgpd: fix crash in bgp_stop due to missing vrf
Problem found to be derefencing a vrf that had already been deleted. Fix verifies that vrf exists before using it. Ticket: CM-13682 Signed-off-by: Don Slice Reviewed By: Vivek Venkatraman Testing Done: manual testing, re-run of failing scripts good
This commit is contained in:
parent
d32dfc2201
commit
2e37f307ee
@ -1026,7 +1026,7 @@ bgp_stop (struct peer *peer)
|
||||
zlog_info ("%%ADJCHANGE: neighbor %s(%s) in vrf %s Down %s",
|
||||
peer->host,
|
||||
(peer->hostname) ? peer->hostname : "Unknown",
|
||||
(vrf->vrf_id != VRF_DEFAULT) ? vrf->name : "Default",
|
||||
vrf ? ((vrf->vrf_id != VRF_DEFAULT) ? vrf->name : "Default") : "",
|
||||
peer_down_str [(int) peer->last_reset]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user