Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
6379b1e
)
tls: Handle transport disconnect during client HS failures
42/35442/6
author
Saravanan Murugesan
<sarmurug@cisco.com>
Fri, 25 Feb 2022 11:13:29 +0000
(16:43 +0530)
committer
Florin Coras
<florin.coras@gmail.com>
Mon, 28 Feb 2022 06:05:59 +0000
(06:05 +0000)
Type: fix
Signed-off-by: Saravanan Murugesan <sarmurug@cisco.com>
Change-Id: I5f7f4b925b3d250c5b8616d1fb35edbde50a7a23
src/plugins/tlsopenssl/tls_openssl.c
patch
|
blob
|
history
diff --git
a/src/plugins/tlsopenssl/tls_openssl.c
b/src/plugins/tlsopenssl/tls_openssl.c
index
964230f
..
2befac0
100644
(file)
--- 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;
}
}