mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:30:30 +00:00
bgpd: evpn code was not properly unlocking rd_dest
Found some code where bgp was not unlocking the dest
and rd_dest when walking the tree attempting to
find something to install.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 1e8ac95bfb
)
This commit is contained in:
parent
983a3853c9
commit
739f00a61c
@ -3665,11 +3665,14 @@ static int install_uninstall_routes_for_vrf(struct bgp *bgp_vrf, int install)
|
|||||||
pi = pi->next) {
|
pi = pi->next) {
|
||||||
ret = bgp_evpn_route_entry_install_if_vrf_match(
|
ret = bgp_evpn_route_entry_install_if_vrf_match(
|
||||||
bgp_vrf, pi, install);
|
bgp_vrf, pi, install);
|
||||||
if (ret)
|
if (ret) {
|
||||||
|
bgp_dest_unlock_node(rd_dest);
|
||||||
|
bgp_dest_unlock_node(dest);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user