aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/gre
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-03-13 15:29:15 -0400
committerDave Barach <dave@barachs.net>2019-03-13 15:29:59 -0400
commita5160d7d1f0dda554960e1f0e9f7074bda256baa (patch)
tree235db392765869de1e9d52f358e70099c829da3c /src/vnet/gre
parent3e94c419e3398e0c030ed0d3d3c72cac38397fe6 (diff)
VPP-1576: fix a set of coverity warnings
Change-Id: Ifd34aed8692d5acaa370d4976d974ac573e43705 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/gre')
-rw-r--r--src/vnet/gre/gre.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/gre/gre.c b/src/vnet/gre/gre.c
index 364733b4260..028eefbee8b 100644
--- a/src/vnet/gre/gre.c
+++ b/src/vnet/gre/gre.c
@@ -343,8 +343,8 @@ VLIB_NODE_FN (gre_encap_node) (vlib_main_t * vm,
vnet_main_t *vnm = gm->vnet_main;
u32 next_index;
u32 *from, *to_next, n_left_from, n_left_to_next;
- u32 sw_if_index0 = 0;
- u32 sw_if_index1 = 0;
+ u32 sw_if_index0 = ~0;
+ u32 sw_if_index1 = ~0;
adj_index_t adj_index0 = ADJ_INDEX_INVALID;
adj_index_t adj_index1 = ADJ_INDEX_INVALID;
gre_tunnel_t *gt0 = NULL;