tls: Handle transport disconnect during client HS failures
Type: fix Signed-off-by: Saravanan Murugesan <sarmurug@cisco.com> Change-Id: I5f7f4b925b3d250c5b8616d1fb35edbde50a7a23
This commit is contained in:

committed by
Florin Coras

parent
6379b1e713
commit
76b86b033e
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user