From 901cbb9e4dcda09e93452129096c057efea4e390 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 19 Feb 2019 02:10:13 -0800 Subject: MPLS: tunnel delete crash Change-Id: I4adf713f4a1d596b9c8a78b79b5df2c7eb0c56f0 Signed-off-by: Neale Ranns --- src/vnet/mpls/mpls_tunnel.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vnet/mpls/mpls_tunnel.c b/src/vnet/mpls/mpls_tunnel.c index ad61ac2b25d..e70f4287360 100644 --- a/src/vnet/mpls/mpls_tunnel.c +++ b/src/vnet/mpls/mpls_tunnel.c @@ -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 -- cgit 1.2.3-korg