mirror of https://github.com/openssl/openssl.git
				
				
				
			Take into account no_store when pushing algorithm
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 https://github.com/openssl/openssl/pull/26197)
(cherry picked from commit b3bb214720)
			
			
This commit is contained in:
		
							parent
							
								
									232eaccb77
								
							
						
					
					
						commit
						5549fcd478
					
				|  | @ -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 */ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue