summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-05-04 12:02:56 -0700
committerFlorin Coras <florin.coras@gmail.com>2022-05-04 21:05:11 +0000
commit6e7ebb00af73507eb67309c3f245388747b0aeab (patch)
treed6d3b58bb1c6ac3bb7cf6e13fa111fb0bd3cb703 /src
parent08183d790401a978b1af61f9b072d5a0526fde73 (diff)
tls: free app session if connect notify refused
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Iee6784c37a835b49d962ae6f87c279cbe65dde15
Diffstat (limited to 'src')
-rw-r--r--src/vnet/tls/tls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/tls/tls.c b/src/vnet/tls/tls.c
index 3a781eb72c9..c1689954975 100644
--- a/src/vnet/tls/tls.c
+++ b/src/vnet/tls/tls.c
@@ -265,8 +265,8 @@ tls_notify_app_connected (tls_ctx_t * ctx, session_error_t err)
parent_app_api_ctx))
{
TLS_DBG (1, "failed to notify app");
- app_session->session_state = SESSION_STATE_CONNECTING;
- tls_disconnect (ctx->tls_ctx_handle, vlib_get_thread_index ());
+ session_free (session_get (ctx->c_s_index, ctx->c_thread_index));
+ ctx->no_app_session = 1;
return -1;
}