tcp: fix skipping RSTs in SYN_SENT state 03/28103/1
authorIvan Shvedunov <ivan4th@gmail.com>
Wed, 29 Jul 2020 16:15:41 +0000 (19:15 +0300)
committerIvan Shvedunov <ivan4th@gmail.com>
Wed, 29 Jul 2020 16:29:04 +0000 (19:29 +0300)
Type: fix

Signed-off-by: Ivan Shvedunov <ivan4th@gmail.com>
Change-Id: Ieddf8f03fdd14e71efaf4c78fe5b7f0d15c5cf5a

src/vnet/tcp/tcp_input.c

index dfd3db6..7f32571 100644 (file)
@@ -215,6 +215,7 @@ tcp_rcv_rst (tcp_worker_ctx_t * wrk, tcp_connection_t * tc)
       break;
     case TCP_STATE_SYN_SENT:
       /* Do not program ntf because the connection is half-open */
+      tc->rst_state = tc->state;
       tcp_handle_rst (tc);
       break;
     case TCP_STATE_ESTABLISHED: