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.0.13~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5588b2db4ada64ffad31ba187fe4ca598706b86d;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) (cherry picked from commit da840c3775f52fc9766c654b5ad6ee031ffc9fd9) --- diff --git a/crypto/evp/evp_fetch.c b/crypto/evp/evp_fetch.c index f39cd2344af..a1d58ee6a01 100644 --- a/crypto/evp/evp_fetch.c +++ b/crypto/evp/evp_fetch.c @@ -365,7 +365,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); }