Revert "bgpd: Prevent null deref"

This reverts commit e80bc08944.
This commit is contained in:
Igor Ryzhov 2021-05-14 01:44:16 +03:00
parent 642ef66443
commit 8cadd54e59

View File

@ -6275,11 +6275,7 @@ static struct peer *bgp_peer_group_peer_lookup(struct bgp *bgp,
struct peer_group *group = NULL; struct peer_group *group = NULL;
group = peer_group_lookup(bgp, peer_str); group = peer_group_lookup(bgp, peer_str);
if (group)
return group->conf; return group->conf;
return NULL;
} }
/* /*