From: sashan Date: Mon, 8 Jan 2024 21:53:42 +0000 (+0100) Subject: evp_fetch.c: Check meth_id instead of name_id X-Git-Tag: openssl-3.3.0-alpha1~333 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da840c3775f52fc9766c654b5ad6ee031ffc9fd9;p=thirdparty%2Fopenssl.git evp_fetch.c: Check meth_id instead of name_id Fixes #23226 Reviewed-by: Shane Lontis Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23238) --- diff --git a/crypto/evp/evp_fetch.c b/crypto/evp/evp_fetch.c index bd816be5f4f..7008f425490 100644 --- a/crypto/evp/evp_fetch.c +++ b/crypto/evp/evp_fetch.c @@ -334,7 +334,7 @@ inner_evp_generic_fetch(struct evp_method_data_st *methdata, method = NULL; } else { meth_id = evp_method_id(name_id, operation_id); - if (name_id != 0) + if (meth_id != 0) ossl_method_store_cache_set(store, prov, meth_id, propq, method, up_ref_method, free_method); }