aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_input.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-09-02 10:51:10 -0700
committerFlorin Coras <florin.coras@gmail.com>2020-09-02 17:54:31 +0000
commit67fe778546683d678015cc0089bbe475cb6a6f22 (patch)
tree685e452c564546a2b62937c3b46f487694b6c76c /src/vnet/tcp/tcp_input.c
parent6484f4b9cbaf19062444cfe09b39ce1514dd146f (diff)
tcp: fix connection refused error
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I436741e061f11685980a71fb3989befc7af1e081
Diffstat (limited to 'src/vnet/tcp/tcp_input.c')
-rw-r--r--src/vnet/tcp/tcp_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_input.c b/src/vnet/tcp/tcp_input.c
index de9d89181fa..a86161c6d34 100644
--- a/src/vnet/tcp/tcp_input.c
+++ b/src/vnet/tcp/tcp_input.c
@@ -164,7 +164,7 @@ tcp_handle_rst (tcp_connection_t * tc)
tcp_connection_cleanup (tc);
break;
case TCP_STATE_SYN_SENT:
- session_stream_connect_notify (&tc->connection, 1 /* fail */ );
+ session_stream_connect_notify (&tc->connection, SESSION_E_REFUSED);
tcp_connection_cleanup (tc);
break;
case TCP_STATE_ESTABLISHED: