httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/main util_filter.c
Date Sat, 12 Aug 2000 23:59:13 GMT
rbb         00/08/12 16:59:13

  Modified:    src/include util_filter.h
               src/main util_filter.c
  Log:
  Add an error condition to the filter code.  Basically, if somehow we get
  to the very bottom of the filter stack and nobody has written anything to
  the network, then we need to return an error.
  
  Revision  Changes    Path
  1.6       +2 -0      apache-2.0/src/include/util_filter.h
  
  Index: util_filter.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/include/util_filter.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- util_filter.h	2000/08/12 23:52:44	1.5
  +++ util_filter.h	2000/08/12 23:59:13	1.6
  @@ -71,6 +71,8 @@
    * @package Apache filter library
    */
   
  +#define AP_NOBODY_WROTE         -1;
  +
   /*
    * FILTER CHAIN
    *
  
  
  
  1.5       +4 -1      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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- util_filter.c	2000/08/12 18:45:35	1.4
  +++ util_filter.c	2000/08/12 23:59:13	1.5
  @@ -153,7 +153,10 @@
    */
   API_EXPORT(int) ap_pass_brigade(ap_filter_t *next, ap_bucket_brigade *bb)
   {
  -    return next->filter_func(next, bb);
  +    if (next) {
  +        return next->filter_func(next, bb);
  +    }
  +    return AP_NOBODY_WROTE;
   }
   
   API_EXPORT(ap_bucket_brigade *) ap_get_saved_data(ap_filter_t *f, 
  
  
  

Mime
View raw message