Skip to content

Commit

Permalink
* modules/filters/mod_deflate.c (deflate_out_filter): Catch
Browse files Browse the repository at this point in the history
  apr_bucket_read() errors.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894152 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
notroj committed Oct 12, 2021
1 parent ded853c commit c1a2dfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/log-message-tags/next-number
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10298
10299
7 changes: 6 additions & 1 deletion modules/filters/mod_deflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c1a2dfc

Please sign in to comment.