From 5a45cf60877f53259fdb607fc0587ffb53f676ca Mon Sep 17 00:00:00 2001 From: johan pascal Date: Fri, 26 Jan 2024 11:24:25 +0100 Subject: [PATCH] ITS#10014 Non blocking TLS session accept for mbedtls handle --- libraries/libldap/tls_mt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libraries/libldap/tls_mt.c b/libraries/libldap/tls_mt.c index 5ca0926d78..908d84058c 100644 --- a/libraries/libldap/tls_mt.c +++ b/libraries/libldap/tls_mt.c @@ -373,12 +373,7 @@ tlsmt_session_accept( tls_session *sess ) { tlsmt_session *s = (tlsmt_session *)sess; - int ret; - do { - ret = mbedtls_ssl_handshake( &(s->ssl_ctx) ); - } while (ret!=0 && (ret== MBEDTLS_ERR_SSL_WANT_READ || ret==MBEDTLS_ERR_SSL_WANT_WRITE)); - - return ret; + return mbedtls_ssl_handshake( &(s->ssl_ctx) ); } static int -- 2.47.3