From edef4b2970b22569374be28014c0af9326eb74e7 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 16 Oct 2000 20:26:56 +0000 Subject: [PATCH] ITS#821: TLS data ready fix from --- libraries/libldap/tls.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 2070e28d80..873d21c773 100644 --- a/libraries/libldap/tls.c +++ b/libraries/libldap/tls.c @@ -361,6 +361,11 @@ sb_tls_ctrl( Sockbuf_IO_Desc *sbiod, int opt, void *arg ) if ( opt == LBER_SB_OPT_GET_SSL ) { *((SSL **)arg) = p->ssl; return 1; + + } else if ( opt == LBER_SB_OPT_DATA_READY ) { + if( SSL_pending( p->ssl ) > 0 ) { + return 1; + } } return LBER_SBIOD_CTRL_NEXT( sbiod, opt, arg ); -- 2.39.5