mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix a possible crash in rand_drbg_get_entropy
Reviewed-by: Paul Yang <yang.yang@baishancloud.com> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/7474)
This commit is contained in:
		
							parent
							
								
									41349b5e6d
								
							
						
					
					
						commit
						21311777ad
					
				|  | @ -151,6 +151,8 @@ size_t rand_drbg_get_entropy(RAND_DRBG *drbg, | ||||||
|         pool->entropy_requested = entropy; |         pool->entropy_requested = entropy; | ||||||
|     } else { |     } else { | ||||||
|         pool = rand_pool_new(entropy, min_len, max_len); |         pool = rand_pool_new(entropy, min_len, max_len); | ||||||
|  |         if (pool == NULL) | ||||||
|  |             return 0; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (drbg->parent) { |     if (drbg->parent) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue