summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/if.c b/lib/if.c
index 97edf1769..8f1461326 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1292,6 +1292,12 @@ if_terminate (struct list **intf_list)
if (ifp == NULL)
break;
+ if (ifp->node)
+ {
+ ifp->node->info = NULL;
+ route_unlock_node (ifp->node);
+ }
+
if_delete (ifp);
}