mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#821: TLS data ready fix from <mattc@chartist.com>
This commit is contained in:
parent
fc227a8816
commit
edef4b2970
1 changed files with 5 additions and 0 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue