From: Damjan Marion Date: Sun, 31 Oct 2021 18:13:24 +0000 (+0100) Subject: tcp: fix uninitializad value X-Git-Tag: v22.06-rc0~336 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=21aa673412b2abc1e113dae08e33eb8992308862;p=vpp.git tcp: fix uninitializad value May not be valid error but gcc-11 complains. Type: fix Change-Id: I207b8b4966c5eadd534495e29c873663249a377f Signed-off-by: Damjan Marion --- diff --git a/src/vnet/tcp/tcp_output.c b/src/vnet/tcp/tcp_output.c index 5b445fa5165..164188efa5c 100644 --- a/src/vnet/tcp/tcp_output.c +++ b/src/vnet/tcp/tcp_output.c @@ -576,7 +576,7 @@ tcp_make_reset_in_place (vlib_main_t * vm, vlib_buffer_t * b, u8 is_ip4) ip4_header_t *ih4; ip6_header_t *ih6; tcp_header_t *th; - ip4_address_t src_ip4, dst_ip4; + ip4_address_t src_ip4 = {}, dst_ip4 = {}; ip6_address_t src_ip6, dst_ip6; u16 src_port, dst_port; u32 tmp, len, seq, ack;