diff options
author | Florin Coras <fcoras@cisco.com> | 2020-02-18 22:51:26 +0000 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2020-02-19 03:20:52 +0000 |
commit | 96acc9b04a837c8517b33c5f37f679204b5d5f67 (patch) | |
tree | 748dda656227fad280d17463bb1a2b657e6130f3 | |
parent | 837826169fd51c1d2bb7703e479447f5d4ffa9a5 (diff) |
tcp: fix syn-sent reset
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I2799ac9723ec3e7effe910bba401fc486c552cac
-rwxr-xr-x | src/vnet/tcp/tcp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c index 14f427cf1e8..67cec5aa6f2 100755 --- a/src/vnet/tcp/tcp_input.c +++ b/src/vnet/tcp/tcp_input.c @@ -327,8 +327,8 @@ tcp_rcv_rst (tcp_worker_ctx_t * wrk, tcp_connection_t * tc) tcp_connection_set_state (tc, TCP_STATE_CLOSED); break; case TCP_STATE_SYN_SENT: - tcp_program_reset_ntf (wrk, tc); - tcp_connection_set_state (tc, TCP_STATE_CLOSED); + /* Do not program ntf because the connection is half-open */ + tcp_handle_rst (tc); break; case TCP_STATE_ESTABLISHED: tcp_connection_timers_reset (tc); |