]> granicus.if.org Git - apache/commitdiff
Fix to avoid a segfault in mod_bucketeer if content_type is unset
authorBrian Pane <brianp@apache.org>
Sat, 23 Feb 2002 21:18:34 +0000 (21:18 +0000)
committerBrian Pane <brianp@apache.org>
Sat, 23 Feb 2002 21:18:34 +0000 (21:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93554 13f79535-47bb-0310-9956-ffa450edef68

modules/test/mod_bucketeer.c

index 6e48420931588a4b235e86bbd192a2040f765db7..fb567241905c56f439215eb00db709f75d5aacc1 100644 (file)
@@ -115,7 +115,7 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f,
      * 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);
         }