From 8f79e2cf65681525362dd2d0d152e903a6fe7cc8 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 16 Oct 2019 10:33:19 -0400 Subject: [PATCH] zebra: zrt->table cannot crash here If we have a zrt data structure then we have a table pointer as well. Signed-off-by: Donald Sharp --- zebra/zebra_vty.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 5ce9d3f293..92f8dd1ecc 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -1025,10 +1025,9 @@ DEFPY (show_route_all_table_vrf, continue; if (zrt->afi != afi || zrt->safi != SAFI_UNICAST) continue; - if (zrt->table) - do_show_route_helper(vty, info->zvrf, zrt->table, afi, - false, 0, false, false, - 0, 0, !!json, zrt->tableid); + + do_show_route_helper(vty, info->zvrf, zrt->table, afi, false, 0, + false, false, 0, 0, !!json, zrt->tableid); } return CMD_SUCCESS; }