diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509_verify.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c index 6179d19cae..7a97aed815 100644 --- a/src/lib/libcrypto/x509/x509_verify.c +++ b/src/lib/libcrypto/x509/x509_verify.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_verify.c,v 1.3 2020/09/14 08:56:32 beck Exp $ */ | 1 | /* $OpenBSD: x509_verify.c,v 1.4 2020/09/14 09:01:11 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -487,7 +487,6 @@ x509_verify_set_check_time(struct x509_verify_ctx *ctx) { | |||
487 | static int | 487 | static int |
488 | x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) | 488 | x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) |
489 | { | 489 | { |
490 | time_t time; | ||
491 | int type; | 490 | int type; |
492 | 491 | ||
493 | memset(tm, 0, sizeof(*tm)); | 492 | memset(tm, 0, sizeof(*tm)); |
@@ -517,7 +516,7 @@ x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) | |||
517 | * a time_t. A time_t must be sane if you care about times after | 516 | * a time_t. A time_t must be sane if you care about times after |
518 | * Jan 19 2038. | 517 | * Jan 19 2038. |
519 | */ | 518 | */ |
520 | if ((time = timegm(tm)) == -1) | 519 | if (timegm(tm) == -1) |
521 | return 0; | 520 | return 0; |
522 | 521 | ||
523 | return 1; | 522 | return 1; |