mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-08 01:36:34 -05:00
Windows: correct lock issue in RandgetBytes by releasing critical section in case of error.
This commit is contained in:
1 parent
84a279a83f
commit
fd0e434087
1 file changed
+1
@@ -363,6 +363,7 @@ BOOL RandgetBytes (unsigned char *buf, int len, BOOL forceSlowPoll)
|
||||
{
|
||||
Error ("ERR_NOT_ENOUGH_RANDOM_DATA");
|
||||
len = RNG_POOL_SIZE;
|
||||
LeaveCriticalSection (&critRandProt);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user