Skip to content
Snippets Groups Projects
Commit 7802219c authored by Drake Arconis's avatar Drake Arconis
Browse files

Fix name cache for test

parent 9b7f025a
No related branches found
No related tags found
No related merge requests found
......@@ -789,8 +789,11 @@ bool max_age_from_cache_control(const std::string& cache_control, S32 *max_age)
try
{
S32 val = boost::lexical_cast<S32>(subtoken);
*max_age = val;
return true;
if (val >= 0 && val < S32_MAX)
{
*max_age = val;
return true;
}
}
catch (const boost::bad_lexical_cast&)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment