mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 04:25:43 +00:00
Merge pull request #12549 from opensourcerouting/fix/bgp_packet_attribute_forward_null
bgpd: Check if bgp_path_info is not NULL when setting AIGP metric TLV
This commit is contained in:
commit
f147ca860b
@ -4682,7 +4682,7 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer,
|
||||
}
|
||||
|
||||
/* AIGP */
|
||||
if (attr->flag & ATTR_FLAG_BIT(BGP_ATTR_AIGP) &&
|
||||
if (bpi && attr->flag & ATTR_FLAG_BIT(BGP_ATTR_AIGP) &&
|
||||
(CHECK_FLAG(peer->flags, PEER_FLAG_AIGP) ||
|
||||
peer->sort != BGP_PEER_EBGP)) {
|
||||
/* At the moment only AIGP Metric TLV exists for AIGP
|
||||
|
Loading…
Reference in New Issue
Block a user