]> git.puffer.fish Git - mirror/frr.git/commitdiff
Revert "bgpd: Check if peer is not NULL before calling peer_as_change()"
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 13 May 2021 22:50:56 +0000 (01:50 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 19 May 2021 08:04:21 +0000 (11:04 +0300)
This reverts commit 7a68370285ed4d64e1ed9dcab60b17bfb26a0ba4.

bgpd/bgp_nb_config.c

index a00fae340109e57467d5c27312ee50ab75a3f344..500e0c6006fc1b3f968ca96f5f349ff95ea223ee 100644 (file)
@@ -5197,8 +5197,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;
        }