httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joachim Zobel <jzo...@heute-morgen.de>
Subject Re: help with filter example: null_filter...
Date Thu, 04 Jan 2007 05:50:31 GMT
Am Mittwoch, den 03.01.2007, 16:08 -0800 schrieb Drew Bertola:
>   /*
>    * let's loop through the buckets passed to us.
>    */
>   for( e  = APR_BRIGADE_FIRST(bb);
>        e != APR_BRIGADE_SENTINEL(bb);
>        e  = APR_BUCKET_NEXT(e) )
>     {
     
  for( e  = APR_BRIGADE_FIRST(bb);
       e != APR_BRIGADE_SENTINEL(bb);
       e  = nx )
    {
       nx = APR_BUCKET_NEXT(e);

will solve the main problem of your code. You have to get the buckets
next pointer before it is changed by APR_BRIGADE_INSERT_TAIL.

Sincerely,
Joachim



Mime
View raw message