summaryrefslogtreecommitdiffstats
path: root/bgpd/rfapi/vnc_export_bgp.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-10-19 20:55:08 +0200
committerRenato Westphal <renato@opensourcerouting.org>2018-10-20 17:39:05 +0200
commit68badf70b19dd0977966f267acf98cd8970260dc (patch)
tree8ca43bb42d67687565e859b883052d4d1415d3c5 /bgpd/rfapi/vnc_export_bgp.c
parentbgpd: fix NULL pointer dereference bug (diff)
downloadfrr-68badf70b19dd0977966f267acf98cd8970260dc.tar.xz
frr-68badf70b19dd0977966f267acf98cd8970260dc.zip
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>
Diffstat (limited to '')
-rw-r--r--bgpd/rfapi/vnc_export_bgp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bgpd/rfapi/vnc_export_bgp.c b/bgpd/rfapi/vnc_export_bgp.c
index 3d010e25f..212d394fd 100644
--- a/bgpd/rfapi/vnc_export_bgp.c
+++ b/bgpd/rfapi/vnc_export_bgp.c
@@ -1403,7 +1403,6 @@ static void vnc_direct_bgp_del_group_afi(struct bgp *bgp,
return;
}
- assert(afi == AFI_IP || afi == AFI_IP6);
rt = import_table->imported_vpn[afi];
if (!rfg->nves && rfg->type != RFAPI_GROUP_CFG_VRF) {