diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2020-11-05 20:42:03 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2020-11-05 20:44:31 -0500 |
| commit | e5209541f2f425c25ef016be2cade323b327ea17 (patch) | |
| tree | 7e81b6fe7e9d7a836f9e40aba3c1e2e886a9066f | |
| parent | 9f6c4d4d163f2260b399f9e81a20b92ef756cc1e (diff) | |
bgpd: Actually return the group peer
The code is returning the group peer data structure, which
is what is happening but we should not have assignment statements
in this return statement for a `struct peer *` return.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | bgpd/bgp_nb_config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_nb_config.c b/bgpd/bgp_nb_config.c index 096fd11d18..a15cb7cad3 100644 --- a/bgpd/bgp_nb_config.c +++ b/bgpd/bgp_nb_config.c @@ -6273,11 +6273,10 @@ 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 peer = group->conf; + return group->conf; } /* |
