From 1b0e0c77d42f6c4685b5add74cc73f27ae22a81d Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 30 Mar 2002 04:52:48 +0000 Subject: [PATCH] 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 --- ssl_engine_io.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.47.2