From c34b70d66621615f49e73489249a68e6e73004d4 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Mon, 2 Oct 2000 22:00:59 +0000 Subject: [PATCH] Fix two problems. First we are setting aside the wrong bucket brigade. Second, we need to check that a setaside routine is defined for the bucket before attempting to call it. Not sure at all if we even want to keep this routine as it does not allow using filter->ctx for other purposes. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86365 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_filter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/util_filter.c b/server/util_filter.c index db3582596b..2b0ff6f29c 100644 --- a/server/util_filter.c +++ b/server/util_filter.c @@ -247,8 +247,9 @@ API_EXPORT(void) ap_save_data_to_filter(ap_filter_t *f, ap_bucket_brigade **b) bb = ap_brigade_create(f->r->pool); } - AP_RING_FOREACH(e, &bb->list, ap_bucket, link) { - e->setaside(e); + AP_RING_FOREACH(e, &(*b)->list, ap_bucket, link) { + if (e->setaside) + e->setaside(e); } AP_BRIGADE_CONCAT(bb, *b); f->ctx = bb; -- 2.50.1