Browse Source

Also reinitialize the pregenerated keys postfork.

Nick Mathewson 5 years ago
parent
commit
cb5cfe3177
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/test/testing_common.c

+ 2 - 0
src/test/testing_common.c

@@ -227,7 +227,9 @@ void tinytest_postfork(void);
 void
 tinytest_postfork(void)
 {
+  free_pregenerated_keys();
   crypto_postfork();
+  init_pregenerated_keys();
 }
 
 /** Main entry point for unit test code: parse the command line, and run