Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
97475fd
)
tcp: fix uninitializad value
91/34291/3
author
Damjan Marion
<damarion@cisco.com>
Sun, 31 Oct 2021 18:13:24 +0000
(19:13 +0100)
committer
Florin Coras
<florin.coras@gmail.com>
Tue, 2 Nov 2021 04:43:02 +0000
(
04:43
+0000)
May not be valid error but gcc-11 complains.
Type: fix
Change-Id: I207b8b4966c5eadd534495e29c873663249a377f
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vnet/tcp/tcp_output.c
patch
|
blob
|
history
diff --git
a/src/vnet/tcp/tcp_output.c
b/src/vnet/tcp/tcp_output.c
index
5b445fa
..
164188e
100644
(file)
--- 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;