]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Show route may be accidentally called on shutdown also when not all default tables...
authorMaria Matejka <mq@jmq.cz>
Wed, 8 Sep 2021 08:33:25 +0000 (08:33 +0000)
committerMaria Matejka <mq@ucw.cz>
Wed, 13 Oct 2021 17:09:04 +0000 (19:09 +0200)
nest/rt-show.c

index 7691878dd6dcfb6887ae29abe78dfc98bd99ba9c..a2ebe6a40eaf96bbcd931b15c381aca66405d5db 100644 (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);
 }