0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-23 02:01:55 +00:00

Show route may be accidentally called on shutdown also when not all default tables are present

This commit is contained in:
Maria Matejka 2021-09-08 08:33:25 +00:00 committed by Maria Matejka
parent a54f75f454
commit 8ac20511e1

View File

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