mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 20:15:08 +00:00
bgpd: remove wrong assert
The vnc_direct_del_rn_group_rd() function can be called with the 'afi' parameter set to AFI_L2VPN on some specific cases. Remove the assert to fix the crash. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
7f5f853d0b
commit
68badf70b1
@ -1403,7 +1403,6 @@ static void vnc_direct_bgp_del_group_afi(struct bgp *bgp,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(afi == AFI_IP || afi == AFI_IP6);
|
|
||||||
rt = import_table->imported_vpn[afi];
|
rt = import_table->imported_vpn[afi];
|
||||||
|
|
||||||
if (!rfg->nves && rfg->type != RFAPI_GROUP_CFG_VRF) {
|
if (!rfg->nves && rfg->type != RFAPI_GROUP_CFG_VRF) {
|
||||||
|
Loading…
Reference in New Issue
Block a user