You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by st...@locus.apache.org on 2000/10/03 00:01:01 UTC
cvs commit: apache-2.0/src/main util_filter.c
stoddard 00/10/02 15:01:00
Modified: src/main util_filter.c
Log:
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.
Revision Changes Path
1.23 +3 -2 apache-2.0/src/main/util_filter.c
Index: util_filter.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/main/util_filter.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- util_filter.c 2000/10/02 00:47:28 1.22
+++ util_filter.c 2000/10/02 22:00:59 1.23
@@ -247,8 +247,9 @@
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;