aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/snat/out2in.c2
-rw-r--r--src/vppinfra/bihash_template.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/snat/out2in.c b/src/plugins/snat/out2in.c
index 824406ab425..e8ddcf1cfd7 100644
--- a/src/plugins/snat/out2in.c
+++ b/src/plugins/snat/out2in.c
@@ -308,6 +308,8 @@ u32 icmp_match_out2in_slow(snat_main_t *sm, vlib_node_runtime_t *node,
sw_if_index0 = vnet_buffer(b0)->sw_if_index[VLIB_RX];
rx_fib_index0 = ip4_fib_table_get_index_for_sw_if_index (sw_if_index0);
+ key0.protocol = 0;
+
err = icmp_get_key (ip0, &key0);
if (err != -1)
{
diff --git a/src/vppinfra/bihash_template.c b/src/vppinfra/bihash_template.c
index 7117f9941e2..004e8a9a558 100644
--- a/src/vppinfra/bihash_template.c
+++ b/src/vppinfra/bihash_template.c
@@ -252,6 +252,8 @@ int BV (clib_bihash_add_del)
hash >>= h->log2_nbuckets;
+ tmp_b.linear_search = 0;
+
while (__sync_lock_test_and_set (h->writer_lock, 1))
;