httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@locus.apache.org
Subject cvs commit: apache-2.0/src/main util_filter.c
Date Mon, 02 Oct 2000 22:01:01 GMT
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;
  
  
  

Mime
View raw message