From 0e17f7f2fa9a164e30414c3a0aee71585db54801 Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Tue, 26 Feb 2002 04:04:54 +0000 Subject: [PATCH] Fix segfault if content_type is NULL. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93570 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/core.c b/server/core.c index 899f3ffdd3..0621294e33 100644 --- a/server/core.c +++ b/server/core.c @@ -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; } -- 2.50.1