bug 173867 - http expires header with date-in-past causes miscalculation. r-dougt, sr-darin.

This commit is contained in:
suresh%netscape.com 2003-02-28 21:54:57 +00:00
Родитель dc91aee512
Коммит 4b13e320bb
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -517,7 +517,10 @@ nsHttpResponseHead::GetExpiresValue(PRUint32 *result)
return NS_ERROR_NOT_AVAILABLE;
}
*result = PRTimeToSeconds(time);
if (LL_CMP(time, <, LL_Zero()))
*result = 0;
else
*result = PRTimeToSeconds(time);
return NS_OK;
}