mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 00:27:07 +00:00
bgpd: Do not forget to unlock bgp_dest from update_advertise_vni_routes
If "unexpected" happens. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
451cebeec2
commit
fd43ffd974
@ -3631,8 +3631,10 @@ static int update_advertise_vni_routes(struct bgp *bgp, struct bgpevpn *vpn)
|
||||
pi->type == ZEBRA_ROUTE_BGP
|
||||
&& pi->sub_type == BGP_ROUTE_STATIC)
|
||||
break;
|
||||
if (!pi) /* unexpected */
|
||||
if (!pi) {
|
||||
bgp_dest_unlock_node(dest);
|
||||
return 0;
|
||||
}
|
||||
attr = pi->attr;
|
||||
|
||||
global_dest = bgp_global_evpn_node_get(bgp->rib[afi][safi],
|
||||
|
Loading…
Reference in New Issue
Block a user