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
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;
}