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
This commit is contained in:
Florin Coras
2023-05-11 17:40:26 -07:00
committed by Dave Wallace
parent fc70a66456
commit d35c71c2f1
+1 -1
View File
@@ -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
{