diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/asn1/a_time_posix.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_time_posix.c b/src/lib/libcrypto/asn1/a_time_posix.c index 8e138d5213..9327aa8bf0 100644 --- a/src/lib/libcrypto/asn1/a_time_posix.c +++ b/src/lib/libcrypto/asn1/a_time_posix.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_time_posix.c,v 1.2 2022/11/08 14:42:42 beck Exp $ */ | 1 | /* $OpenBSD: a_time_posix.c,v 1.3 2023/01/01 16:58:23 miod Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022, Google Inc. | 3 | * Copyright (c) 2022, Google Inc. |
4 | * Copyright (c) 2022, Bob Beck <beck@obtuse.com> | 4 | * Copyright (c) 2022, Bob Beck <beck@obtuse.com> |
@@ -83,7 +83,8 @@ static int | |||
83 | is_valid_epoch_time(int64_t time) | 83 | is_valid_epoch_time(int64_t time) |
84 | { | 84 | { |
85 | /* 0000-01-01 00:00:00 UTC to 9999-12-31 23:59:59 UTC */ | 85 | /* 0000-01-01 00:00:00 UTC to 9999-12-31 23:59:59 UTC */ |
86 | return (int64_t)-62167219200 <= time && time <= (int64_t)253402300799; | 86 | return (int64_t)-62167219200LL <= time && |
87 | time <= (int64_t)253402300799LL; | ||
87 | } | 88 | } |
88 | 89 | ||
89 | /* | 90 | /* |