mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
Merge pull request #7467 from ton31337/fix/bgpd_null_dereference
bgpd: Check if peer is not NULL before calling peer_as_change()
This commit is contained in:
commit
db2e92360c
@ -5213,6 +5213,7 @@ int bgp_neighbors_unnumbered_neighbor_neighbor_remote_as_remote_as_type_destroy(
|
||||
peer = peer_lookup_by_conf_if(bgp, peer_str);
|
||||
|
||||
/* remote-as set to 0 and as_type to unspecified */
|
||||
if (peer)
|
||||
peer_as_change(peer, 0, AS_UNSPECIFIED);
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user