Fix async engine pause dead lock in error case.
In 'crypto/rand/ossl_rand.c', a call to 'ASYNC_unblock_pause()' is missing in an error case. CLA: trivial Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/4020)
This commit is contained in:
parent
a58eb06d52
commit
e4b16013e9
1 changed files with 1 additions and 0 deletions
|
@ -485,6 +485,7 @@ static int rand_bytes(unsigned char *buf, int num)
|
|||
ASYNC_block_pause();
|
||||
if (!EVP_DigestUpdate(m, sp->md, sizeof(sp->md))
|
||||
|| !EVP_DigestFinal_ex(m, sp->md, NULL)) {
|
||||
ASYNC_unblock_pause();
|
||||
CRYPTO_THREAD_unlock(rand_lock);
|
||||
goto err;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue