From a9a6ed4fc1289376ba3dc332cc9b723af98846a4 Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Sat, 23 Feb 2002 21:18:34 +0000 Subject: [PATCH] Fix to avoid a segfault in mod_bucketeer if content_type is unset git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93554 13f79535-47bb-0310-9956-ffa450edef68 --- modules/test/mod_bucketeer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/test/mod_bucketeer.c b/modules/test/mod_bucketeer.c index 6e48420931..fb56724190 100644 --- a/modules/test/mod_bucketeer.c +++ b/modules/test/mod_bucketeer.c @@ -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); } -- 2.50.1