X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Flisp-gpe%2Flisp_gpe_fwd_entry.c;fp=src%2Fvnet%2Flisp-gpe%2Flisp_gpe_fwd_entry.c;h=c898b9f7c314fa00b0b278f94a048d2de094b0a3;hb=612a383e7f6cb9a6b846674a09a19299ed31a138;hp=1c34e6e4eee44c79639e80a0ff55c53d8837a91a;hpb=966de205fc272737895e12bf7f57856c2cbf0582;p=vpp.git diff --git a/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c b/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c index 1c34e6e4eee..c898b9f7c31 100644 --- a/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c +++ b/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c @@ -510,10 +510,13 @@ del_ip_fwd_entry_i (lisp_gpe_main_t * lgm, lisp_gpe_fwd_entry_t * lfe) lisp_fwd_path_t *path; fib_protocol_t fproto; - vec_foreach (path, lfe->paths) - { - lisp_gpe_adjacency_unlock (path->lisp_adj); - } + if (LISP_GPE_FWD_ENTRY_TYPE_NEGATIVE != lfe->type) + { + vec_foreach (path, lfe->paths) + { + lisp_gpe_adjacency_unlock (path->lisp_adj); + } + } delete_fib_entries (lfe);