summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMarco Varlese <marco.varlese@suse.com>2017-06-05 17:59:24 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2017-06-05 19:58:18 +0000
commit47366b19fb7f65dba1a7c731ee765b1216f47e33 (patch)
treeabd9ed54960dffbe338801854b056dbd3abfd6b2 /src/plugins
parent560274d042d12f31aceabff6a293cdf71429552d (diff)
More GCC-7 errors
The Wmaybe-uninitialized is the new error included with Wall. This patch addresses the warning and fixes it. Change-Id: I8fdf9ff2d236c46b717024a14874fbbbad8af303 Signed-off-by: Marco Varlese <marco.varlese@suse.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/snat/out2in.c2
1 files changed, 2 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)
{