Skip to content

Commit

Permalink
evp_fetch.c: Check meth_id instead of name_id
Browse files Browse the repository at this point in the history
Fixes #23226

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23238)

(cherry picked from commit da840c3)
  • Loading branch information
Sashan authored and t8m committed Jan 11, 2024
1 parent 8d07eed commit 40cdfac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/evp/evp_fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 40cdfac

Please sign in to comment.