Commit 1b0e0c77 authored by Doug MacEachern's avatar Doug MacEachern
Browse files

ssl_io_input_read needs to return something other than APR_SUCCESS

when bucket read from socket was successful,
but there was an error within the ssl runtime.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@94327 13f79535-47bb-0310-9956-ffa450edef68
parent 9d470beb
Loading
Loading
Loading
Loading
+7 −0
Changes for ssl_engine_io.c: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -677,6 +677,13 @@ static apr_status_t ssl_io_input_read(ssl_io_input_ctx_t *ctx,
            char_buffer_write(&ctx->cbuf, buf, rc);
        }
    }
    else if ((rc == -1) && (ctx->inbio.rc == APR_SUCCESS)) {
        /*
         * bucket read from socket was successful,
         * but there was an error within the ssl runtime.
         */
        return APR_EGENERAL;
    }

    return ctx->inbio.rc;
}