httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/test mod_bucketeer.c
Date Sat, 23 Feb 2002 21:18:34 GMT
brianp      02/02/23 13:18:34

  Modified:    modules/test mod_bucketeer.c
  Log:
  Fix to avoid a segfault in mod_bucketeer if content_type is unset
  
  Revision  Changes    Path
  1.4       +1 -1      httpd-2.0/modules/test/mod_bucketeer.c
  
  Index: mod_bucketeer.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/test/mod_bucketeer.c,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- mod_bucketeer.c	23 Feb 2002 19:21:18 -0000	1.3
  +++ mod_bucketeer.c	23 Feb 2002 21:18:34 -0000	1.4
  @@ -115,7 +115,7 @@
        * we're in better shape.
        */
       if (!ctx) {  
  -        if (strncmp(r->content_type, "text/", 5)) {
  +        if (!r->content_type || strncmp(r->content_type, "text/", 5)) {
               ap_remove_output_filter(f);
               return ap_pass_brigade(f->next, bb);
           }
  
  
  

Mime
View raw message