tcp: fix endpoint lookup failed caused by key uninitialized 96/34796/2
authorMercury <mercury124185@gmail.com>
Thu, 23 Dec 2021 11:15:02 +0000 (19:15 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 23 Dec 2021 17:15:59 +0000 (17:15 +0000)
commit65409fb341c110bf905be0e29833405bb3bbf4e6
treee2c9eb54271826ebf511caecc7dc1f8d5873d4f1
parentcdfe8abc613a0aa936963d31bc60cec86a5c641d
tcp: fix endpoint lookup failed caused by key uninitialized

fix ipv4 key uninitialized in local_endpoints_table,
which will cause transport_endpoint_cleanup() failed
to lookup the endpoint and can not delete it,
as for ipv6, clib_memcpy_fast() will change all bytes of lcl_addr
and there maybe no need to initalize,

Type: fix
Signed-off-by: Mercury <mercury124185@gmail.com>
Change-Id: I56676493a393b1d64eaa438224e256094ca75d2f
src/vnet/tcp/tcp.c