]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/generators/cgi_common.h (cgi_handle_request): Catch
authorJoe Orton <jorton@apache.org>
Tue, 25 Feb 2020 16:34:47 +0000 (16:34 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 25 Feb 2020 16:34:47 +0000 (16:34 +0000)
  (unlikely) apr_bucket_read() failure when reading request.

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

modules/generators/cgi_common.h

index 1c80b0e85e2c6820180010c4904751f789531520..f97e7a2390b1e9f1fc49462626444fe844598057 100644 (file)
@@ -407,7 +407,10 @@ static apr_status_t cgi_handle_request(request_rec *r, apr_file_t *script_out,
             }
 
             /* read */
-            apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ);
+            rv = apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ);
+            if (rv) {
+                return rv;
+            }
 
             if (logbufbytes && dbpos < logbufbytes) {
                 int cursize;