From 08257f59a0866845f118590ca8f05be0687cfcb5 Mon Sep 17 00:00:00 2001 From: tb Date: Mon, 1 Nov 2021 17:20:50 +0000 Subject: [PATCH] In X509_STORE_CTX_get_obj_from_subject() rename X509_OBJECT from the generic 'ret' to obj' in X509. Requested by jsing --- lib/libcrypto/x509/x509_lu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/libcrypto/x509/x509_lu.c b/lib/libcrypto/x509/x509_lu.c index 143ad152bae..d4ea5276628 100644 --- a/lib/libcrypto/x509/x509_lu.c +++ b/lib/libcrypto/x509/x509_lu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_lu.c,v 1.36 2021/10/31 16:23:45 tb Exp $ */ +/* $OpenBSD: x509_lu.c,v 1.37 2021/11/01 17:20:50 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -325,16 +325,16 @@ X509_OBJECT * X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type, X509_NAME *name) { - X509_OBJECT *ret; + X509_OBJECT *obj; - if ((ret = X509_OBJECT_new()) == NULL) + if ((obj = X509_OBJECT_new()) == NULL) return NULL; - if (!X509_STORE_CTX_get_by_subject(vs, type, name, ret)) { - X509_OBJECT_free(ret); + if (!X509_STORE_CTX_get_by_subject(vs, type, name, obj)) { + X509_OBJECT_free(obj); return NULL; } - return ret; + return obj; } int -- 2.20.1