Merge pull request #14182 from donaldsharp/bgp_evpn_lock_problem

bgpd: evpn code was not properly unlocking rd_dest
This commit is contained in:
Jafar Al-Gharaibeh 2023-08-11 19:52:37 -05:00 committed by GitHub
commit 16cbdc0aaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3757,8 +3757,11 @@ static int install_uninstall_routes_for_vrf(struct bgp *bgp_vrf, int install)
pi = pi->next) {
ret = bgp_evpn_route_entry_install_if_vrf_match(
bgp_vrf, pi, install);
if (ret)
if (ret) {
bgp_dest_unlock_node(rd_dest);
bgp_dest_unlock_node(dest);
return ret;
}
}
}
}