Commit 79cd12cf authored by Doug MacEachern's avatar Doug MacEachern
Browse files

input filter should not return failure when ssl runtime wants to read more


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@94328 13f79535-47bb-0310-9956-ffa450edef68
parent 1b0e0c77
Loading
Loading
Loading
Loading
+2 −5
Changes for ssl_engine_io.c: 2 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -495,6 +495,7 @@ static int ssl_io_hook_read(SSL *ssl, char *buf, int len)
             * renegotation which is handled implicitly by OpenSSL.)
             */
            errno = EINTR;
            rc = 0; /* non fatal error */
        }
        else if (ssl_err == SSL_ERROR_SSL) {
            /*
@@ -504,12 +505,8 @@ static int ssl_io_hook_read(SSL *ssl, char *buf, int len)
            ssl_log(c->base_server, SSL_LOG_ERROR|SSL_ADD_SSLERR,
                    "SSL error on reading data");
        }
        /*
         * XXX - Just trying to reflect the behaviour in 
         * openssl_state_machine.c [mod_tls]. TBD
         */
        rc = -1;
    }

    return rc;
}