Commit 8ac20511 authored by Maria Matejka's avatar Maria Matejka Committed by Maria Matejka
Browse files

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

parent a54f75f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}