From d35c71c2f1bc1f4a5119f6944dad26fa0eff27c3 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 11 May 2023 17:40:26 -0700 Subject: tls: flag no app session on handshake failure If openssl tls server handshake fails, track the fact that the context does not have an app session. Type: fix Signed-off-by: Florin Coras Change-Id: I5f493059a3610067b59caffbbe441ce9e0868252 --- src/plugins/tlsopenssl/tls_openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index 426bf2fe1e5..97b32bd405f 100644 --- a/src/plugins/tlsopenssl/tls_openssl.c +++ b/src/plugins/tlsopenssl/tls_openssl.c @@ -273,10 +273,10 @@ openssl_handle_handshake_failure (tls_ctx_t * ctx) if (app_session) { session_free (app_session); - ctx->no_app_session = 1; ctx->c_s_index = SESSION_INVALID_INDEX; tls_disconnect_transport (ctx); } + ctx->no_app_session = 1; } else { -- cgit 1.2.3-korg