MPLS: tunnel delete crash 73/17673/3
authorNeale Ranns <nranns@cisco.com>
Tue, 19 Feb 2019 10:10:13 +0000 (02:10 -0800)
committerNeale Ranns <nranns@cisco.com>
Thu, 28 Feb 2019 07:59:34 +0000 (07:59 +0000)
Change-Id: I4adf713f4a1d596b9c8a78b79b5df2c7eb0c56f0
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/vnet/mpls/mpls_tunnel.c

index ad61ac2..e70f428 100644 (file)
@@ -245,6 +245,12 @@ mpls_tunnel_stack (adj_index_t ai)
     if (NULL == mt)
         return;
 
+    if (FIB_NODE_INDEX_INVALID == mt->mt_path_list)
+    {
+        adj_nbr_midchain_unstack(ai);
+        return;
+    }
+
     /*
      * while we're stacking the adj, remove the tunnel from the child list
      * of the path list. this breaks a circular dependency of walk updates