From 6481a9f105bdb577260f8bbf37628bd817bd64dc Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 17 Oct 2000 21:41:59 +0000 Subject: [PATCH] ITS#821: TLS data ready patch --- CHANGES | 1 + libraries/libldap/tls.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGES b/CHANGES index 46b7477f53..9cc37b7d42 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,7 @@ OpenLDAP 2.0 Change Log OpenLDAP 2.0.X Engineering + Fixed -lldap TLS data ready bug (ITS#821) Fixed slapd spasswd mutex bug Fixed slapd ACL nameuid bug Fixed slapd SASL layerring bug diff --git a/libraries/libldap/tls.c b/libraries/libldap/tls.c index 3b1000cc98..b82d8835f3 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.47.2