From: Justin Erenkrantz Date: Tue, 26 Feb 2002 04:04:54 +0000 (+0000) Subject: Fix segfault if content_type is NULL. X-Git-Tag: 2.0.33~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e17f7f2fa9a164e30414c3a0aee71585db54801;p=apache 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 --- 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; }