Loading include/util_filter.h +2 −1 Original line number Diff line number Diff line Loading @@ -378,9 +378,10 @@ AP_DECLARE(void) ap_remove_output_filter(ap_filter_t *f); * new bucket brigade is returned in this location. * @param b The bucket brigade to save aside. This brigade is always empty * on return * @param p Ensure that all data in the brigade lives as long as this pool */ AP_DECLARE(apr_status_t) ap_save_brigade(ap_filter_t *f, apr_bucket_brigade **save_to, apr_bucket_brigade **b); apr_bucket_brigade **b, apr_pool_t *p); /** * Flush function for apr_brigade_* calls. This calls ap_pass_brigade Loading modules/filters/mod_include.c +1 −1 Original line number Diff line number Diff line Loading @@ -2620,7 +2620,7 @@ static void send_parsed_content(apr_bucket_brigade **bb, request_rec *r, } /* Set aside tag, pass pre-tag... */ tag_and_after = apr_brigade_split(*bb, ctx->head_start_bucket); ap_save_brigade(f, &ctx->ssi_tag_brigade, &tag_and_after); ap_save_brigade(f, &ctx->ssi_tag_brigade, &tag_and_after, r->pool); ap_pass_brigade(f->next, *bb); ctx->bytes_parsed = 0; } Loading modules/http/http_protocol.c +1 −1 Original line number Diff line number Diff line Loading @@ -2282,7 +2282,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter( * we SHOULD return the data in the same order it was requested. */ if (!APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(bb))) { ap_save_brigade(f, &ctx->bb, &bb); ap_save_brigade(f, &ctx->bb, &bb, r->pool); return APR_SUCCESS; } Loading server/core.c +2 −2 Original line number Diff line number Diff line Loading @@ -3173,7 +3173,7 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b) apr_brigade_destroy(b); } else { ap_save_brigade(f, &ctx->b, &b); ap_save_brigade(f, &ctx->b, &b, c->pool); } return APR_SUCCESS; } Loading server/protocol.c +2 −2 Original line number Diff line number Diff line Loading @@ -881,7 +881,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f, } if ((ctx->curr_len < AP_MIN_BYTES_TO_WRITE) && !send_it) { return ap_save_brigade(f, &ctx->saved, &b); return ap_save_brigade(f, &ctx->saved, &b, r->pool); } /* We will compute a content length if: Loading Loading @@ -911,7 +911,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f, * filter until we have the entire content length */ if (!send_it) { ap_save_brigade(f, &ctx->saved, &b); ap_save_brigade(f, &ctx->saved, &b, r->pool); return APR_SUCCESS; } ap_set_content_length(r, r->bytes_sent); Loading Loading
include/util_filter.h +2 −1 Original line number Diff line number Diff line Loading @@ -378,9 +378,10 @@ AP_DECLARE(void) ap_remove_output_filter(ap_filter_t *f); * new bucket brigade is returned in this location. * @param b The bucket brigade to save aside. This brigade is always empty * on return * @param p Ensure that all data in the brigade lives as long as this pool */ AP_DECLARE(apr_status_t) ap_save_brigade(ap_filter_t *f, apr_bucket_brigade **save_to, apr_bucket_brigade **b); apr_bucket_brigade **b, apr_pool_t *p); /** * Flush function for apr_brigade_* calls. This calls ap_pass_brigade Loading
modules/filters/mod_include.c +1 −1 Original line number Diff line number Diff line Loading @@ -2620,7 +2620,7 @@ static void send_parsed_content(apr_bucket_brigade **bb, request_rec *r, } /* Set aside tag, pass pre-tag... */ tag_and_after = apr_brigade_split(*bb, ctx->head_start_bucket); ap_save_brigade(f, &ctx->ssi_tag_brigade, &tag_and_after); ap_save_brigade(f, &ctx->ssi_tag_brigade, &tag_and_after, r->pool); ap_pass_brigade(f->next, *bb); ctx->bytes_parsed = 0; } Loading
modules/http/http_protocol.c +1 −1 Original line number Diff line number Diff line Loading @@ -2282,7 +2282,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_byterange_filter( * we SHOULD return the data in the same order it was requested. */ if (!APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(bb))) { ap_save_brigade(f, &ctx->bb, &bb); ap_save_brigade(f, &ctx->bb, &bb, r->pool); return APR_SUCCESS; } Loading
server/core.c +2 −2 Original line number Diff line number Diff line Loading @@ -3173,7 +3173,7 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b) apr_brigade_destroy(b); } else { ap_save_brigade(f, &ctx->b, &b); ap_save_brigade(f, &ctx->b, &b, c->pool); } return APR_SUCCESS; } Loading
server/protocol.c +2 −2 Original line number Diff line number Diff line Loading @@ -881,7 +881,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f, } if ((ctx->curr_len < AP_MIN_BYTES_TO_WRITE) && !send_it) { return ap_save_brigade(f, &ctx->saved, &b); return ap_save_brigade(f, &ctx->saved, &b, r->pool); } /* We will compute a content length if: Loading Loading @@ -911,7 +911,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f, * filter until we have the entire content length */ if (!send_it) { ap_save_brigade(f, &ctx->saved, &b); ap_save_brigade(f, &ctx->saved, &b, r->pool); return APR_SUCCESS; } ap_set_content_length(r, r->bytes_sent); Loading