]> git.puffer.fish Git - mirror/frr.git/commitdiff
Revert "bgpd: Actually return the group peer"
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 13 May 2021 22:51:34 +0000 (01:51 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 3 Aug 2021 19:20:52 +0000 (22:20 +0300)
This reverts commit e5209541f2f425c25ef016be2cade323b327ea17.

bgpd/bgp_nb_config.c

index a6cff2a1101e211d0c120d16c92b857410f52b64..6273d33b9a5d3dfe9e02e2d58e096725436c3a91 100644 (file)
@@ -6255,10 +6255,11 @@ int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_enabled_destroy(
 static struct peer *bgp_peer_group_peer_lookup(struct bgp *bgp,
                                               const char *peer_str)
 {
+       struct peer *peer = NULL;
        struct peer_group *group = NULL;
 
        group = peer_group_lookup(bgp, peer_str);
-       return group->conf;
+       return peer = group->conf;
 }
 
 /*