ipsec: make pre-shared keys harder to misuse
[vpp.git] / src / vnet / ipsec / ah_decrypt.c
index ce4610d..f20f620 100644 (file)
@@ -155,7 +155,7 @@ ah_decrypt_inline (vlib_main_t * vm,
                                          thread_index, current_sa_index);
        }
 
-      if (PREDICT_FALSE (~0 == sa0->thread_index))
+      if (PREDICT_FALSE ((u16) ~0 == sa0->thread_index))
        {
          /* this is the first packet to use this SA, claim the SA
           * for this thread. this could happen simultaneously on