summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsashan <anedvedicky@gmail.com>2024-01-08 22:53:42 +0100
committerTomas Mraz <tomas@openssl.org>2024-01-11 10:26:55 +0100
commit6969bf4d7785827fef8b6698a0349c609609b28e (patch)
tree823c0f19d19bf1db4d20027d8b5def4fb2b43a12
parent0d3775cf11137c33dcbd30e89194d16019bf60e6 (diff)
evp_fetch.c: Check meth_id instead of name_id
Fixes #23226 Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23238) (cherry picked from commit da840c3775f52fc9766c654b5ad6ee031ffc9fd9)
-rw-r--r--crypto/evp/evp_fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp_fetch.c b/crypto/evp/evp_fetch.c
index 3d86fa3702..5e7ce3de50 100644
--- a/crypto/evp/evp_fetch.c
+++ b/crypto/evp/evp_fetch.c
@@ -333,7 +333,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);
}