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-Tag: 2.0.34~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a12425c133a902b09b94e6c41ea2b26c6fa75f53;p=apache 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@94327 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index 1c14f1f33c..f372a48f3b 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/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; }