Skip to content

Commit b1f3978

Browse files
committed
* modules/filters/mod_deflate.c (deflate_out_filter): Catch
apr_bucket_read() errors. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894152 13f79535-47bb-0310-9956-ffa450edef68 (cherry picked from commit c1a2dfc)
1 parent 8836713 commit b1f3978

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/filters/mod_deflate.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,12 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
988988
}
989989

990990
/* read */
991-
apr_bucket_read(e, &data, &len, APR_BLOCK_READ);
991+
rv = apr_bucket_read(e, &data, &len, APR_BLOCK_READ);
992+
if (rv) {
993+
ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, APLOGNO(10298)
994+
"failed reading from %s bucket", e->type->name);
995+
return rv;
996+
}
992997
if (!len) {
993998
apr_bucket_delete(e);
994999
continue;

0 commit comments

Comments
 (0)