From: Doug MacEachern Date: Sat, 30 Mar 2002 04:52:48 +0000 (+0000) Subject: ssl_io_input_read needs to return something other than APR_SUCCESS X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b0e0c77d42f6c4685b5add74cc73f27ae22a81d;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/ssl_engine_io.c b/ssl_engine_io.c index 1c14f1f33c7..f372a48f3ba 100644 --- a/ssl_engine_io.c +++ b/ssl_engine_io.c @@ -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; }