fixed 32 bit overflow check

This commit is contained in:
Andreas Steffen
2009-05-14 15:39:31 +02:00
parent c296e51c40
commit 13bb168485
3 changed files with 885 additions and 1 deletions
+1 -1
View File
@@ -359,7 +359,7 @@ time_t asn1_to_time(const chunk_t *utctime, asn1_t type)
}
/* prevent large 32 bit integer overflows */
if (sizeof(time_t) == 8 && tm_year > 1938)
if (sizeof(time_t) == 4 && tm_year > 2038)
{
return TIME_MAX;
}