From fc2cb66f0ea3c56212f08445efb2249d14ad832c Mon Sep 17 00:00:00 2001
From: tb <>
Date: Sun, 27 Oct 2024 09:38:49 +0000
Subject: d2i_ECParameters: rename ret to ec_key

---
 src/lib/libcrypto/ec/ec_asn1.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'src')

diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c
index a5224f28c8..4e4e9b062e 100644
--- a/src/lib/libcrypto/ec/ec_asn1.c
+++ b/src/lib/libcrypto/ec/ec_asn1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_asn1.c,v 1.84 2024/10/27 09:37:28 tb Exp $ */
+/* $OpenBSD: ec_asn1.c,v 1.85 2024/10/27 09:38:49 tb Exp $ */
 /*
  * Written by Nils Larsch for the OpenSSL project.
  */
@@ -1283,30 +1283,30 @@ LCRYPTO_ALIAS(i2d_ECParameters);
 EC_KEY *
 d2i_ECParameters(EC_KEY **a, const unsigned char **in, long len)
 {
-	EC_KEY *ret;
+	EC_KEY *ec_key;
 
 	if (in == NULL || *in == NULL) {
 		ECerror(ERR_R_PASSED_NULL_PARAMETER);
 		return NULL;
 	}
 	if (a == NULL || *a == NULL) {
-		if ((ret = EC_KEY_new()) == NULL) {
+		if ((ec_key = EC_KEY_new()) == NULL) {
 			ECerror(ERR_R_MALLOC_FAILURE);
 			return NULL;
 		}
 	} else
-		ret = *a;
+		ec_key = *a;
 
-	if (!d2i_ECPKParameters(&ret->group, in, len)) {
+	if (!d2i_ECPKParameters(&ec_key->group, in, len)) {
 		ECerror(ERR_R_EC_LIB);
-		if (a == NULL || *a != ret)
-			EC_KEY_free(ret);
+		if (a == NULL || *a != ec_key)
+			EC_KEY_free(ec_key);
 		return NULL;
 	}
 
 	if (a != NULL)
-		*a = ret;
-	return ret;
+		*a = ec_key;
+	return ec_key;
 }
 LCRYPTO_ALIAS(d2i_ECParameters);
 
-- 
cgit v1.2.3-55-g6feb