mirror of https://github.com/openssl/openssl.git
				
				
				
			Fix error handling in RAND_DRBG_uninstantiate
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/7517)
This commit is contained in:
		
							parent
							
								
									7ecd6c5186
								
							
						
					
					
						commit
						fb9c3ff565
					
				|  | @ -437,6 +437,7 @@ int RAND_DRBG_uninstantiate(RAND_DRBG *drbg) | |||
| { | ||||
|     int index = -1, type, flags; | ||||
|     if (drbg->meth == NULL) { | ||||
|         drbg->state = DRBG_ERROR; | ||||
|         RANDerr(RAND_F_RAND_DRBG_UNINSTANTIATE, | ||||
|                 RAND_R_NO_DRBG_IMPLEMENTATION_SELECTED); | ||||
|         return 0; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue