]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/filters/mod_deflate.c (deflate_out_filter): Catch
authorJoe Orton <jorton@apache.org>
Tue, 12 Oct 2021 08:27:15 +0000 (08:27 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 12 Oct 2021 08:27:15 +0000 (08:27 +0000)
  apr_bucket_read() errors.

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

docs/log-message-tags/next-number
modules/filters/mod_deflate.c

index c62bdf7d0a6add7f44103ae74e9967843e5367fc..ab8b1aa28caf0a69b0237ae6b559ebab1ba4152d 100644 (file)
@@ -1 +1 @@
-10298
+10299
index 102d54f5834acb2c0bd17faecbabc1e99c8e0c45..beff3b81af2c6206ea327f9aee3a1ff50a21747c 100644 (file)
@@ -989,7 +989,12 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
         }
 
         /* read */
-        apr_bucket_read(e, &data, &len, APR_BLOCK_READ);
+        rv = apr_bucket_read(e, &data, &len, APR_BLOCK_READ);
+        if (rv) {
+            ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(10298)
+                          "failed reading from %s bucket", e->type->name);
+            return rv;
+        }
         if (!len) {
             apr_bucket_delete(e);
             continue;