mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
bgpd: Check for NULL before assigning a peer from the group
CID 1566056 Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
4262dc3bd8
commit
860e427758
@ -8333,6 +8333,7 @@ struct peer *peer_lookup_in_view(struct vty *vty, struct bgp *bgp,
|
|||||||
|
|
||||||
if (!peer) {
|
if (!peer) {
|
||||||
group = peer_group_lookup(bgp, ip_str);
|
group = peer_group_lookup(bgp, ip_str);
|
||||||
|
if (group)
|
||||||
peer = listnode_head(group->peer);
|
peer = listnode_head(group->peer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user