aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-05-11 17:40:26 -0700
committerDave Wallace <dwallacelf@gmail.com>2023-05-19 20:46:06 +0000
commitd35c71c2f1bc1f4a5119f6944dad26fa0eff27c3 (patch)
treefaaefa8d7961628d611b256ea9bb505b40af6cda /src/plugins
parentfc70a664567021491ba62dec8b232d357e8d9494 (diff)
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 <fcoras@cisco.com> Change-Id: I5f493059a3610067b59caffbbe441ce9e0868252
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/tlsopenssl/tls_openssl.c2
1 files changed, 1 insertions, 1 deletions
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
{