mirror of https://github.com/openssl/openssl.git
				
				
				
			Remove double engine reference in ossl_ec_key_dup()
Fixes #25260
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25453)
(cherry picked from commit ffc5a29608)
			
			
This commit is contained in:
		
							parent
							
								
									68af032a78
								
							
						
					
					
						commit
						80e57e9f0b
					
				|  | @ -617,14 +617,8 @@ EC_KEY *ossl_ec_key_dup(const EC_KEY *src, int selection) | ||||||
|             || !EC_GROUP_copy(ret->group, src->group)) |             || !EC_GROUP_copy(ret->group, src->group)) | ||||||
|             goto err; |             goto err; | ||||||
| 
 | 
 | ||||||
|         if (src->meth != NULL) { |         if (src->meth != NULL) | ||||||
| #if !defined(OPENSSL_NO_ENGINE) && !defined(FIPS_MODULE) |  | ||||||
|             if (src->engine != NULL && ENGINE_init(src->engine) == 0) |  | ||||||
|                 goto err; |  | ||||||
|             ret->engine = src->engine; |  | ||||||
| #endif |  | ||||||
|             ret->meth = src->meth; |             ret->meth = src->meth; | ||||||
|         } |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /*  copy the public key */ |     /*  copy the public key */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue