Show route may be accidentally called on shutdown also when not all default tables are present
This commit is contained in:
parent
a54f75f454
commit
8ac20511e1
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ rt_show_get_default_tables(struct rt_show_data *d)
|
|||
}
|
||||
|
||||
for (int i=1; i<NET_MAX; i++)
|
||||
if (config->def_tables[i])
|
||||
if (config->def_tables[i] && config->def_tables[i]->table)
|
||||
rt_show_add_table(d, config->def_tables[i]->table);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue