diff options
author | Werner Koch <wk@gnupg.org> | 2012-12-03 15:15:49 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2012-12-03 20:47:38 +0100 |
commit | 75760021b511ba438606af746431223357e7a155 (patch) | |
tree | 7ef4d45a91a7b1dce631b7ecb0b2b20697102088 /random | |
parent | c324644aa14e54fc7051983b38222db32b8ab227 (diff) | |
download | libgcrypt-75760021b511ba438606af746431223357e7a155.tar.gz |
Make random-fips.c work multi-threaded.
* random/random-fips.c (basic_initialization): Fix reversed logic.
--
The module never initialized the mutex at all. Probably this was never
an issue before commit 38fcd59 which removed static lock init.
Diffstat (limited to 'random')
-rw-r--r-- | random/random-fips.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/random/random-fips.c b/random/random-fips.c index e0ae9683..7f205d29 100644 --- a/random/random-fips.c +++ b/random/random-fips.c @@ -192,7 +192,7 @@ basic_initialization (void) static int initialized; int my_errno; - if (!initialized) + if (initialized) return; initialized = 1; |