From 464fe57002ebd46844bb91b15d841a01c6d8a81e Mon Sep 17 00:00:00 2001
From: beck <>
Date: Mon, 14 Sep 2020 09:09:08 +0000
Subject: remove unneded variable "time1"

noticed by llvm static analyzer
ok tb@
---
 src/lib/libcrypto/x509/x509_vfy.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c
index a66ef76e6b..8a616b6bc2 100644
--- a/src/lib/libcrypto/x509/x509_vfy.c
+++ b/src/lib/libcrypto/x509/x509_vfy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_vfy.c,v 1.77 2020/09/14 08:06:09 beck Exp $ */
+/* $OpenBSD: x509_vfy.c,v 1.78 2020/09/14 09:09:08 beck Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -2001,15 +2001,15 @@ X509_cmp_current_time(const ASN1_TIME *ctm)
 static int
 X509_cmp_time_internal(const ASN1_TIME *ctm, time_t *cmp_time, int clamp_notafter)
 {
-	time_t time1, time2;
+	time_t compare;
 	struct tm tm1, tm2;
 	int ret = 0;
 	int type;
 
 	if (cmp_time == NULL)
-		time2 = time(NULL);
+		compare = time(NULL);
 	else
-		time2 = *cmp_time;
+		compare = *cmp_time;
 
 	memset(&tm1, 0, sizeof(tm1));
 
@@ -2034,10 +2034,10 @@ X509_cmp_time_internal(const ASN1_TIME *ctm, time_t *cmp_time, int clamp_notafte
 	 * a time_t. A time_t must be sane if you care about times after
 	 * Jan 19 2038.
 	 */
-	if ((time1 = timegm(&tm1)) == -1)
+	if (timegm(&tm1) == -1)
 		goto out;
 
-	if (gmtime_r(&time2, &tm2) == NULL)
+	if (gmtime_r(&compare, &tm2) == NULL)
 		goto out;
 
 	ret = ASN1_time_tm_cmp(&tm1, &tm2);
-- 
cgit v1.2.3-55-g6feb