]> granicus.if.org Git - apache/commitdiff
Fix segfault if content_type is NULL.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 26 Feb 2002 04:04:54 +0000 (04:04 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Tue, 26 Feb 2002 04:04:54 +0000 (04:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93570 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 899f3ffdd3aaaeba1fa0da49521238f8ca08e760..0621294e3311d1220a1bc02960c618f38074b48f 100644 (file)
@@ -2984,9 +2984,10 @@ static int core_filters_type(request_rec *r)
     conf = (core_dir_config *)ap_get_module_config(r->per_dir_config,
                                                    &core_module);
 
-    /* We can't do anything with proxy requests or if we don't have a filter
-     * configured. */ 
-    if (r->proxyreq != PROXYREQ_NONE || !conf->ct_output_filters) {
+    /* We can't do anything with proxy requests, no content-types or if
+     * we don't have a filter configured. */ 
+    if (r->proxyreq != PROXYREQ_NONE || !r->content_type || 
+        !conf->ct_output_filters) {
         return OK;
     }