vpp-189 Clean up more coverity warnings
[vpp.git] / vnet / vnet / vxlan / decap.c
index dc9a2ff..899b331 100644 (file)
@@ -64,7 +64,10 @@ vxlan_input (vlib_main_t * vm,
   u32 cpu_index = os_get_cpu_number();
   u32 stats_sw_if_index, stats_n_packets, stats_n_bytes;
 
-  last_key4.as_u64 = ~0;
+  if (is_ip4)
+    last_key4.as_u64 = ~0;
+  else
+    memset (&last_key6, 0xff, sizeof (last_key6));
 
   from = vlib_frame_vector_args (from_frame);
   n_left_from = from_frame->n_vectors;