From: Eric Covener Date: Mon, 7 Dec 2015 23:43:01 +0000 (+0000) Subject: remove dead code leftover from r1023387. X-Git-Tag: 2.5.0-alpha~2556 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa543e759a4b96171a20afb67883b6b46a4995f5;p=thirdparty%2Fapache%2Fhttpd.git remove dead code leftover from r1023387. Prior to this revision, there was an apr_atoi64 in this context. Now, ap_cache_control() sets control.max_age (which is checked here) when the maxage value was parsed OK. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1718496 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index 461c47309cf..4f7f25a5820 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -1410,14 +1410,8 @@ static apr_status_t cache_save_filter(ap_filter_t *f, apr_bucket_brigade *in) if (control.max_age) { apr_int64_t x; - errno = 0; - x = control.max_age_value; - if (errno) { - x = dconf->defex; - } - else { - x = x * MSEC_ONE_SEC; - } + x = control.max_age_value * MSEC_ONE_SEC; + if (x < dconf->minex) { x = dconf->minex; }