diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2017-06-06 15:32:52 +0200 |
---|---|---|
committer | Filip Tehlar <ftehlar@cisco.com> | 2017-06-06 15:32:52 +0200 |
commit | 761787bd0bcfcedf109bc8b37536a9ac92698064 (patch) | |
tree | f4e020bf144b0c96c0b42f732778c496ea619bd3 | |
parent | 1728d4a81e7ec2c818459877afe36e323ff79f52 (diff) |
Fix coverity issue
Change-Id: I5f7dc38beb96b600be67599049f951d8a17ff8da
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
-rw-r--r-- | src/vnet/lisp-gpe/lisp_gpe_fwd_entry.c | 3 |
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; |