mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 05:21:31 +00:00
bgpd: Fix attribute handling for type-5 routes
When a EVPN type-5 route is formed by using the source IP route's AS-path, the AS-path is not locally generated and should not be "uninterned" (i.e., have its reference count incorrectly updated). An incorrect update of the reference count can lead to asserts or crashes at a later stage. Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Ticket: CM-19121 Reviewed By: CCR-7028 Testing Done: 1. Manual testing by Vivek and Anitha 2. No automation run since this area has no coverage yet
This commit is contained in:
parent
d445462649
commit
5ee65f6f3e
@ -1120,7 +1120,8 @@ static int update_evpn_type5_route(struct bgp *bgp_vrf,
|
||||
}
|
||||
|
||||
/* uninten temporary */
|
||||
aspath_unintern(&attr.aspath);
|
||||
if (!src_attr)
|
||||
aspath_unintern(&attr.aspath);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user