From 761787bd0bcfcedf109bc8b37536a9ac92698064 Mon Sep 17 00:00:00 2001 From: Filip Tehlar Date: Tue, 6 Jun 2017 15:32:52 +0200 Subject: Fix coverity issue Change-Id: I5f7dc38beb96b600be67599049f951d8a17ff8da Signed-off-by: Filip Tehlar --- src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/lisp-gpe') diff --git a/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c b/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c index c1fea804c56..0b7b0fefea3 100644 --- a/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c +++ b/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c @@ -424,6 +424,9 @@ vnet_lisp_gpe_add_fwd_counters (vnet_lisp_gpe_add_del_fwd_entry_args_t * a, lfe = find_fwd_entry (lgm, a, &fe_key); + if (!lfe) + return; + if (LISP_GPE_FWD_ENTRY_TYPE_NORMAL != lfe->type) return; -- cgit 1.2.3-korg