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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2019-10-16 10:33:19 -04:00
parent d06244b7d4
commit 8f79e2cf65

View File

@ -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;
}