]> granicus.if.org Git - apache/commitdiff
ssl_io_input_read needs to return something other than APR_SUCCESS
authorDoug MacEachern <dougm@apache.org>
Sat, 30 Mar 2002 04:52:48 +0000 (04:52 +0000)
committerDoug MacEachern <dougm@apache.org>
Sat, 30 Mar 2002 04:52:48 +0000 (04:52 +0000)
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

index 1c14f1f33c739419199069bd13ccbc3553368ed2..f372a48f3ba0d6a1e3a8d5d0c83dd7f9a0a0a809 100644 (file)
@@ -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;
 }