Revert "bgpd: Check if peer is not NULL before calling peer_as_change()"

This reverts commit 7a68370285.
This commit is contained in:
Igor Ryzhov 2021-05-14 01:50:56 +03:00
parent 6a6affc6b7
commit ef7434952e

View File

@ -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;
}