]> git.sur5r.net Git - openldap/commitdiff
ITS#821: TLS data ready fix from <mattc@chartist.com>
authorKurt Zeilenga <kurt@openldap.org>
Mon, 16 Oct 2000 20:26:56 +0000 (20:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 16 Oct 2000 20:26:56 +0000 (20:26 +0000)
libraries/libldap/tls.c

index 2070e28d80da407566d3d95f0a001809996f71f2..873d21c7738426c3ea3c7dcba9c67b298eb8926b 100644 (file)
@@ -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 );