From: tb Date: Fri, 26 Jul 2024 13:30:40 +0000 (+0000) Subject: Inline last user of X509at_get_attr() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1b0af5810b39612cb5c9c2c2089a0168270313e6;p=openbsd Inline last user of X509at_get_attr() ok jsing --- diff --git a/lib/libcrypto/x509/x509_att.c b/lib/libcrypto/x509/x509_att.c index 0c9d55f74f5..2bf6aa498ed 100644 --- a/lib/libcrypto/x509/x509_att.c +++ b/lib/libcrypto/x509/x509_att.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_att.c,v 1.22 2023/02/16 08:38:17 tb Exp $ */ +/* $OpenBSD: x509_att.c,v 1.23 2024/07/26 13:30:40 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -227,7 +227,7 @@ X509at_get0_data_by_OBJ(STACK_OF(X509_ATTRIBUTE) *x, const ASN1_OBJECT *obj, return NULL; if ((lastpos <= -2) && (X509at_get_attr_by_OBJ(x, obj, i) != -1)) return NULL; - at = X509at_get_attr(x, i); + at = sk_X509_ATTRIBUTE_value(x, i); if (lastpos <= -3 && (X509_ATTRIBUTE_count(at) != 1)) return NULL; return X509_ATTRIBUTE_get0_data(at, 0, type, NULL);