From e68581f0c21285ae3a720d10eba015c66678749c Mon Sep 17 00:00:00 2001 From: cameronrich Date: Fri, 14 Jan 2011 14:10:36 +0000 Subject: [PATCH] Small code factoring improvement to do_client_connect() git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@195 9a5d90b5-6617-0410-8a86-bb477d3ed2e3 --- ssl/tls1_clnt.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/ssl/tls1_clnt.c b/ssl/tls1_clnt.c index 510126ab1..f846ffdc9 100644 --- a/ssl/tls1_clnt.c +++ b/ssl/tls1_clnt.c @@ -155,22 +155,10 @@ int do_client_connect(SSL *ssl) { while (ssl->hs_status != SSL_OK) { - ret = basic_read(ssl, NULL); + ret = ssl_read(ssl, NULL); if (ret < SSL_OK) - { - if (ret != SSL_ERROR_CONN_LOST) - { - /* let the server know we are dying and why */ - if (send_alert(ssl, ret)) - { - /* something nasty happened, so get rid of it */ - kill_ssl_session(ssl->ssl_ctx->ssl_sessions, ssl); - } - } - break; - } } }