From: Ilie Halip Date: Wed, 14 May 2025 14:40:21 +0000 (+0300) Subject: Fix trace output for provider algorithm names X-Git-Tag: openssl-3.6.0-alpha1~739 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1094db3c4e57c4d537837912db3736299b50edef;p=thirdparty%2Fopenssl.git Fix trace output for provider algorithm names Use the index variable to print out the provider algorithm details. CLA: trivial Signed-off-by: Ilie Halip Reviewed-by: Paul Yang Reviewed-by: Richard Levitte Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27624) --- diff --git a/crypto/provider_core.c b/crypto/provider_core.c index 9069d4f8dc9..0b675946485 100644 --- a/crypto/provider_core.c +++ b/crypto/provider_core.c @@ -1958,12 +1958,12 @@ const OSSL_ALGORITHM *ossl_provider_query_operation(const OSSL_PROVIDER *prov, BIO_printf(trc_out, "(provider %s) names %s, prop_def %s, desc %s\n", prov->name, - res->algorithm_names == NULL ? "none" : - res->algorithm_names, - res->property_definition == NULL ? "none" : - res->property_definition, - res->algorithm_description == NULL ? "none" : - res->algorithm_description); + idx->algorithm_names == NULL ? "none" : + idx->algorithm_names, + idx->property_definition == NULL ? "none" : + idx->property_definition, + idx->algorithm_description == NULL ? "none" : + idx->algorithm_description); } } else { BIO_printf(trc_out, "(provider %s) query_operation failed\n", prov->name);