This sanity check has been discovered when running bgp mpath_tests that are available in tests folder.
Signed-off-by: Philippe Guibert <philippe.guib...@6wind.com> --- bgpd/bgp_mpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c index f117d2dbed8d..46d813984741 100644 --- a/bgpd/bgp_mpath.c +++ b/bgpd/bgp_mpath.c @@ -509,7 +509,7 @@ bgp_info_mpath_update (struct bgp_node *rn, struct bgp_info *new_best, else if (old_best) vrf = bgp_vrf_lookup(old_best->peer->bgp, prd); } - else if(bgp_node_table (rn)->type == BGP_TABLE_VRF) + else if(rn->table && bgp_node_table (rn) && bgp_node_table (rn)->type == BGP_TABLE_VRF) { if (new_best) vrf = bgp_vrf_lookup_per_rn(new_best->peer->bgp, afi, rn); -- 2.1.4 _______________________________________________ Quagga-dev mailing list Quagga-dev@lists.quagga.net https://lists.quagga.net/mailman/listinfo/quagga-dev