Blame SOURCES/httpd-2.4.6-CVE-2014-3581.patch

008793
diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c
008793
index 7b7fb45..fbebb1e 100644
008793
--- a/modules/cache/cache_util.c
008793
+++ b/modules/cache/cache_util.c
008793
@@ -1251,8 +1251,10 @@ CACHE_DECLARE(apr_table_t *)ap_cache_cacheable_headers_out(request_rec *r)
008793
 
008793
     if (!apr_table_get(headers_out, "Content-Type")
008793
         && r->content_type) {
008793
-        apr_table_setn(headers_out, "Content-Type",
008793
-                       ap_make_content_type(r, r->content_type));
008793
+        const char *ctype = ap_make_content_type(r, r->content_type);
008793
+        if (ctype) {
008793
+            apr_table_setn(headers_out, "Content-Type", ctype);
008793
+        }
008793
     }
008793
 
008793
     if (!apr_table_get(headers_out, "Content-Encoding")