summaryrefslogtreecommitdiff
path: root/zebra/zebra_ns.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_ns.c')
-rw-r--r--zebra/zebra_ns.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/zebra/zebra_ns.c b/zebra/zebra_ns.c
index f52c5e0058..7b076b8a4a 100644
--- a/zebra/zebra_ns.c
+++ b/zebra/zebra_ns.c
@@ -138,7 +138,9 @@ int zebra_ns_enable(ns_id_t ns_id, void **info)
*/
static int zebra_ns_disable_internal(struct zebra_ns *zns, bool complete)
{
- route_table_finish(zns->if_table);
+ if (zns->if_table)
+ route_table_finish(zns->if_table);
+ zns->if_table = NULL;
zebra_dplane_ns_enable(zns, false /*Disable*/);