Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I2799ac9723ec3e7effe910bba401fc486c552cac
tcp_connection_set_state (tc, TCP_STATE_CLOSED);
break;
case TCP_STATE_SYN_SENT:
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);
break;
case TCP_STATE_ESTABLISHED:
tcp_connection_timers_reset (tc);