ITS#821: TLS data ready fix from <mattc@chartist.com>

This commit is contained in:
Kurt Zeilenga 2000-10-16 20:26:56 +00:00
parent fc227a8816
commit edef4b2970

View File

@ -361,6 +361,11 @@ sb_tls_ctrl( Sockbuf_IO_Desc *sbiod, int opt, void *arg )
if ( opt == LBER_SB_OPT_GET_SSL ) { if ( opt == LBER_SB_OPT_GET_SSL ) {
*((SSL **)arg) = p->ssl; *((SSL **)arg) = p->ssl;
return 1; 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 ); return LBER_SBIOD_CTRL_NEXT( sbiod, opt, arg );