From: Graham Leggett Date: Fri, 8 Mar 2002 18:35:11 +0000 (+0000) Subject: Fix a NULL variable check in proxy where we were checking the X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6422a0e11736ca87eaa774e469cd0cc7d6a3343c;p=thirdparty%2Fapache%2Fhttpd.git Fix a NULL variable check in proxy where we were checking the wrong variable. PR: Obtained from: Submitted by: Geff Hanoian Reviewed by: Graham Leggett git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@93803 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/CHANGES b/src/CHANGES index 495e5489e0a..e7275d5f763 100644 --- a/src/CHANGES +++ b/src/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 1.3.24 + *) Fix a NULL variable check in proxy where we were checking the + wrong variable. [Geff Hanoian ] + *) Fix typo in default config files related to Swedish language documents. PR: 9906, 10040 [Tomas Ă–gren , Dennis Lundberg ] diff --git a/src/modules/proxy/proxy_cache.c b/src/modules/proxy/proxy_cache.c index 96e58444253..3f37c53de96 100644 --- a/src/modules/proxy/proxy_cache.c +++ b/src/modules/proxy/proxy_cache.c @@ -1155,7 +1155,7 @@ int ap_proxy_cache_check(request_rec *r, char *url, struct cache_conf *conf, smaxage = -1; /* extract max-age from request */ - if (cc_cresp && ap_proxy_liststr(cc_req, "max-age", &val)) + if (cc_req && ap_proxy_liststr(cc_req, "max-age", &val)) maxage_req = atoi(val); else maxage_req = -1;