mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 15:58:18 +00:00
Merge pull request #7525 from donaldsharp/dest_lock
bgpd: Fix missed unlocks
This commit is contained in:
commit
4b18f17437
@ -51,6 +51,7 @@ bgp_check_rmap_prefixes_in_bgp_table(struct bgp_table *table,
|
||||
if (ret != RMAP_PERMITMATCH)
|
||||
bgp_attr_flush(&dummy_attr);
|
||||
else {
|
||||
bgp_dest_unlock_node(dest);
|
||||
if (BGP_DEBUG(update, UPDATE_OUT))
|
||||
zlog_debug(
|
||||
"%s: Condition map routes present in BGP table",
|
||||
|
@ -2930,6 +2930,8 @@ static int install_uninstall_routes_for_vrf(struct bgp *bgp_vrf, int install)
|
||||
evp,
|
||||
vrf_id_to_name(
|
||||
bgp_vrf->vrf_id));
|
||||
bgp_dest_unlock_node(rd_dest);
|
||||
bgp_dest_unlock_node(dest);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
@ -3009,6 +3011,9 @@ static int install_uninstall_routes_for_vni(struct bgp *bgp,
|
||||
? "MACIP"
|
||||
: "IMET",
|
||||
vpn->vni);
|
||||
|
||||
bgp_dest_unlock_node(rd_dest);
|
||||
bgp_dest_unlock_node(dest);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@ -763,6 +763,9 @@ static int bgp_evpn_type4_remote_routes_import(struct bgp *bgp,
|
||||
install ? "install"
|
||||
: "uninstall",
|
||||
evp, es->esi_str);
|
||||
|
||||
bgp_dest_unlock_node(rd_dest);
|
||||
bgp_dest_unlock_node(dest);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
@ -842,8 +842,10 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (ret == RMAP_PERMITMATCH)
|
||||
if (ret == RMAP_PERMITMATCH) {
|
||||
bgp_dest_unlock_node(dest);
|
||||
break;
|
||||
}
|
||||
}
|
||||
bgp->peer_self->rmap_type = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user