Oops, do not unlock CRYPTO_LOCK_DYNLOCK when we locked
CRYPTO_LOCK_RAND...
This commit is contained in:
parent
d38f3ad1ee
commit
3537525e00
1 changed files with 1 additions and 1 deletions
|
@ -700,7 +700,7 @@ static int aep_rand(unsigned char *buf,int len )
|
|||
|
||||
return 1;
|
||||
err:
|
||||
CRYPTO_w_unlock(CRYPTO_LOCK_DYNLOCK);
|
||||
CRYPTO_w_unlock(CRYPTO_LOCK_RAND);
|
||||
err_nounlock:
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue