Make random-fips.c work multi-threaded.
authorWerner Koch <wk@gnupg.org>
Mon, 3 Dec 2012 14:15:49 +0000 (15:15 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 3 Dec 2012 19:47:38 +0000 (20:47 +0100)
* 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.

random/random-fips.c

index e0ae968..7f205d2 100644 (file)
@@ -192,7 +192,7 @@ basic_initialization (void)
   static int initialized;
   int my_errno;
 
-  if (!initialized)
+  if (initialized)
     return;
   initialized = 1;