Skip to content

Commit

Permalink
Take into account no_store when pushing algorithm
Browse files Browse the repository at this point in the history
When we put algorithm to the store, we have a fallback to the
OSSL_LIB_CTX level store when store is NULL.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from openssl#26197)
  • Loading branch information
beldmit committed Dec 20, 2024
1 parent f6097c7 commit b3bb214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/core_fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void ossl_method_construct_this(OSSL_PROVIDER *provider,
* It is *expected* that the put function increments the refcnt
* of the passed method.
*/
data->mcm->put(data->store, method, provider, algo->algorithm_names,
data->mcm->put(no_store ? data->store : NULL, method, provider, algo->algorithm_names,
algo->property_definition, data->mcm_data);

/* refcnt-- because we're dropping the reference */
Expand Down

0 comments on commit b3bb214

Please sign in to comment.