Revert "bgpd: Actually return the group peer"

This reverts commit e5209541f2.
This commit is contained in:
Igor Ryzhov 2021-05-14 01:51:34 +03:00
parent ef7434952e
commit 665a65cdc7

View 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;
}
/*