]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: remove wrong assert
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 19 Oct 2018 18:55:08 +0000 (15:55 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 20 Oct 2018 15:39:05 +0000 (12:39 -0300)
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>
bgpd/rfapi/vnc_export_bgp.c

index 3d010e25f8777b4786c5b8bcccabfff45c3f7b6b..212d394fdc22c5d857ada575c85fc29476f91974 100644 (file)
@@ -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) {