diff options
author | Saravanan Murugesan <sarmurug@cisco.com> | 2022-02-25 16:43:29 +0530 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-02-28 06:05:59 +0000 |
commit | 76b86b033ecc7cd7b065a7ddf2fc11480ae96205 (patch) | |
tree | cb5e890a158c4130d63518ed250e9299b3041d79 /src/plugins/tlsopenssl | |
parent | 6379b1e713bd204e66b560b4abc694cd48d28e39 (diff) |
tls: Handle transport disconnect during client HS failures
Type: fix
Signed-off-by: Saravanan Murugesan <sarmurug@cisco.com>
Change-Id: I5f7f4b925b3d250c5b8616d1fb35edbde50a7a23
Diffstat (limited to 'src/plugins/tlsopenssl')
-rw-r--r-- | src/plugins/tlsopenssl/tls_openssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/tlsopenssl/tls_openssl.c b/src/plugins/tlsopenssl/tls_openssl.c index 964230f178f..2befac0dc28 100644 --- a/src/plugins/tlsopenssl/tls_openssl.c +++ b/src/plugins/tlsopenssl/tls_openssl.c @@ -266,6 +266,7 @@ openssl_handle_handshake_failure (tls_ctx_t * ctx) * Also handles cleanup of the pre-allocated session */ tls_notify_app_connected (ctx, SESSION_E_TLS_HANDSHAKE); + tls_disconnect_transport (ctx); } } @@ -331,7 +332,7 @@ openssl_ctx_handshake_rx (tls_ctx_t * ctx, session_t * tls_session) */ if (ctx->srv_hostname) { - tls_notify_app_connected (ctx, SESSION_E_TLS_HANDSHAKE); + openssl_handle_handshake_failure (ctx); return -1; } } |