]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Also reinitialize the pregenerated keys postfork.
authorNick Mathewson <nickm@torproject.org>
Tue, 31 Jul 2018 22:42:42 +0000 (18:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 21 Aug 2018 16:24:08 +0000 (12:24 -0400)
src/test/testing_common.c

index 6957342c62280f7854010a65ac44f15a175220ad..17a0756803a9af55fcc8a73fdc1f232c709d1f4b 100644 (file)
@@ -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