aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-10-31 19:13:24 +0100
committerFlorin Coras <florin.coras@gmail.com>2021-11-02 04:43:02 +0000
commit21aa673412b2abc1e113dae08e33eb8992308862 (patch)
tree07608b274e909b928a534df4f8b29c83877b72fb /src/vnet/tcp
parent97475fdebf6e55cbcce4807f1bbd8493d9d13c20 (diff)
tcp: fix uninitializad value
May not be valid error but gcc-11 complains. Type: fix Change-Id: I207b8b4966c5eadd534495e29c873663249a377f Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/tcp')
-rw-r--r--src/vnet/tcp/tcp_output.c2
1 files changed, 1 insertions, 1 deletions
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;