mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 11:24:42 +00:00
Merge pull request #12900 from opensourcerouting/fix/memory_leak_aspath_dup_astype
bgpd: Avoid double aspath_dup() for confederation when remote-as != AS_SPECIFIED
This commit is contained in:
commit
bed7867117
@ -4312,7 +4312,6 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer,
|
|||||||
* if the peer belongs to us.
|
* if the peer belongs to us.
|
||||||
*/
|
*/
|
||||||
if (bgp_confederation_peers_check(bgp, peer->as)) {
|
if (bgp_confederation_peers_check(bgp, peer->as)) {
|
||||||
aspath = aspath_dup(attr->aspath);
|
|
||||||
aspath = aspath_add_confed_seq(aspath,
|
aspath = aspath_add_confed_seq(aspath,
|
||||||
peer->local_as);
|
peer->local_as);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user