VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Common/Random.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Common/Random.c b/src/Common/Random.c
index 54192cb2..76ff6b61 100644
--- a/src/Common/Random.c
+++ b/src/Common/Random.c
@@ -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;
}