From: johan pascal Date: Fri, 26 Jan 2024 10:24:25 +0000 (+0100) Subject: ITS#10014 Non blocking TLS session accept for mbedtls handle X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a45cf60877f53259fdb607fc0587ffb53f676ca;p=thirdparty%2Fopenldap.git ITS#10014 Non blocking TLS session accept for mbedtls handle --- 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