diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2020-09-14 09:01:12 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2020-09-14 09:01:12 +0000 |
commit | 5352130e146793b264d6d0dff61305cf25a21b97 (patch) | |
tree | b800c1a2a213dfea844dad75c9f72b3cfc8871ac | |
parent | 29b02c231bbec67b853de2d44b69c4f564956cf4 (diff) |
remove unneded variable "time"
noticed by llvm static analyzer
ok tb@
-rw-r--r-- | lib/libcrypto/x509/x509_verify.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libcrypto/x509/x509_verify.c b/lib/libcrypto/x509/x509_verify.c index 6179d19cae8..7a97aed8155 100644 --- a/lib/libcrypto/x509/x509_verify.c +++ b/lib/libcrypto/x509/x509_verify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_verify.c,v 1.3 2020/09/14 08:56:32 beck Exp $ */ +/* $OpenBSD: x509_verify.c,v 1.4 2020/09/14 09:01:11 beck Exp $ */ /* * Copyright (c) 2020 Bob Beck <beck@openbsd.org> * @@ -487,7 +487,6 @@ x509_verify_set_check_time(struct x509_verify_ctx *ctx) { static int x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) { - time_t time; int type; memset(tm, 0, sizeof(*tm)); @@ -517,7 +516,7 @@ x509_verify_asn1_time_to_tm(const ASN1_TIME *atime, struct tm *tm, int notafter) * a time_t. A time_t must be sane if you care about times after * Jan 19 2038. */ - if ((time = timegm(tm)) == -1) + if (timegm(tm) == -1) return 0; return 1; |