mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 15:16:20 +00:00
Revert "bgpd: Check if peer is not NULL before calling peer_as_change()"
This reverts commit 7a68370285
.
This commit is contained in:
parent
6a6affc6b7
commit
ef7434952e
@ -5196,8 +5196,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);
|
||||
peer_as_change(peer, 0, AS_UNSPECIFIED);
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user