summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-03-19 12:14:02 +0100
committerNeale Ranns <nranns@cisco.com>2018-03-19 15:36:38 +0000
commit1d977dceee55ad1cb7480cf7bb7737448ce5a124 (patch)
tree408d26e59efae2a442c4497303798d12499c6dcd /src/vnet
parent2bc940272ec75d1094326eafb4a3fa2c614e3a7b (diff)
IPIP: Fix coverity error.
Change-Id: Ia2b3350bf8e2c72eee3f33936ba16dd817c75c72 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ipip/sixrd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/ipip/sixrd.c b/src/vnet/ipip/sixrd.c
index c44c8345e30..282f468039e 100644
--- a/src/vnet/ipip/sixrd.c
+++ b/src/vnet/ipip/sixrd.c
@@ -195,6 +195,9 @@ sixrd_update_adj (vnet_main_t * vnm, u32 sw_if_index, adj_index_t ai)
ip_adjacency_t *adj = adj_get (ai);
ipip_tunnel_t *t = ipip_tunnel_db_find_by_sw_if_index (sw_if_index);
+ /* Not our tunnel */
+ if (!t)
+ return;
if (!memcmp (&sixrd_special_nh, &adj->sub_type.nbr.next_hop,
sizeof (sixrd_special_nh)))
{