]> granicus.if.org Git - apache/commitdiff
remove dead code leftover from r1023387.
authorEric Covener <covener@apache.org>
Mon, 7 Dec 2015 23:43:01 +0000 (23:43 +0000)
committerEric Covener <covener@apache.org>
Mon, 7 Dec 2015 23:43:01 +0000 (23:43 +0000)
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

modules/cache/mod_cache.c

index 461c47309cf3652fd1925f86d6b94a1f3d2a6de9..4f7f25a5820e9d2db9593ec78753c3ce2f6f26a2 100644 (file)
@@ -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;
             }