Skip to content

Commit 934a9fc

Browse files
author
Felipe Zimmerle
committed
Verify if chunk exists before access it
1 parent b8636a7 commit 934a9fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/apache2_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ apr_status_t input_filter(ap_filter_t *f, apr_bucket_brigade *bb_out,
8585
return APR_EGENERAL;
8686
}
8787

88-
if (chunk->length > 0) {
88+
if (chunk && chunk->length > 0) {
8989
if (chunk && (!msr->txcfg->stream_inbody_inspection || (msr->txcfg->stream_inbody_inspection && msr->if_stream_changed == 0))) {
9090
/* Copy the data we received in the chunk */
9191
bucket = apr_bucket_heap_create(chunk->data, chunk->length, NULL,

0 commit comments

Comments
 (0)