summaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2017-06-06 15:32:52 +0200
committerFilip Tehlar <ftehlar@cisco.com>2017-06-06 15:32:52 +0200
commit761787bd0bcfcedf109bc8b37536a9ac92698064 (patch)
treef4e020bf144b0c96c0b42f732778c496ea619bd3 /src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c
parent1728d4a81e7ec2c818459877afe36e323ff79f52 (diff)
Fix coverity issue
Change-Id: I5f7dc38beb96b600be67599049f951d8a17ff8da Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c')
-rw-r--r--src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c3
1 files changed, 3 insertions, 0 deletions
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;