> On Nov 23, 2015, at 7:33 AM, [email protected] wrote: > > Author: ylavic > Date: Mon Nov 23 12:33:09 2015 > New Revision: 1715789 > > URL: http://svn.apache.org/viewvc?rev=1715789&view=rev > Log: > Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive). > > > Modified: httpd/httpd/trunk/modules/cache/cache_util.c > URL: > http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/cache_util.c?rev=1715789&r1=1715788&r2=1715789&view=diff > ============================================================================== > --- httpd/httpd/trunk/modules/cache/cache_util.c (original) > +++ httpd/httpd/trunk/modules/cache/cache_util.c Mon Nov 23 12:33:09 2015 > @@ -594,7 +594,12 @@ int cache_check_freshness(cache_handle_t > } > > if ((agestr = apr_table_get(h->resp_hdrs, "Age"))) { > - age_c = apr_atoi64(agestr); > + char *endp; > + apr_off_t offt; > + if (!apr_strtoff(&offt, agestr, &endp, 10) > + && endp > agestr && !*endp) { > + age_c = offt; > + } > } > > /* calculate age of object */ >
That's cheating :)
