]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/ssl/ssl_engine_io.c (ssl_io_input_read): Fix potential
authorJoe Orton <jorton@apache.org>
Wed, 11 Aug 2004 13:19:24 +0000 (13:19 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 11 Aug 2004 13:19:24 +0000 (13:19 +0000)
infinite loop in ssl_io_input_getline if connection is aborted without
inctx->rc being set.

PR: 29964

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@104547 13f79535-47bb-0310-9956-ffa450edef68

ssl_engine_io.c

index d48292c50e6a5dfb845bc62a5ebacd62daf57142..29e9a650f8c53d4fe8ee1bdd6b9f91324a1584e5 100644 (file)
@@ -589,6 +589,10 @@ static apr_status_t ssl_io_input_read(bio_filter_in_ctx_t *inctx,
     while (1) {
 
         if (!inctx->filter_ctx->pssl) {
+            /* Ensure a non-zero error code is returned */
+            if (inctx->rc == APR_SUCCESS) {
+                inctx->rc = APR_EGENERAL;
+            }
             break;
         }