From 49d24a8b3127606473de371d01887ba183d6160d Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 23 May 2024 01:52:05 +0000 Subject: [PATCH] x509_v3.c: zap another pointless local variable --- lib/libcrypto/x509/x509_v3.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/libcrypto/x509/x509_v3.c b/lib/libcrypto/x509/x509_v3.c index 0474ef5dab4..12d416eec0d 100644 --- a/lib/libcrypto/x509/x509_v3.c +++ b/lib/libcrypto/x509/x509_v3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_v3.c,v 1.26 2024/05/23 01:50:52 tb Exp $ */ +/* $OpenBSD: x509_v3.c,v 1.27 2024/05/23 01:52:05 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -277,15 +277,10 @@ LCRYPTO_ALIAS(X509_EXTENSION_set_critical); int X509_EXTENSION_set_data(X509_EXTENSION *ext, ASN1_OCTET_STRING *data) { - int i; - if (ext == NULL) return 0; - i = ASN1_STRING_set(ext->value, data->data, data->length); - if (!i) - return 0; - return 1; + return ASN1_STRING_set(ext->value, data->data, data->length); } LCRYPTO_ALIAS(X509_EXTENSION_set_data); -- 2.20.1