From a12425c133a902b09b94e6c41ea2b26c6fa75f53 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@94327 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_io.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- 2.50.1