]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Initialize networking _before_ initializing libevent in the tests
authorNick Mathewson <nickm@torproject.org>
Mon, 16 May 2016 18:30:04 +0000 (14:30 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 16 May 2016 18:30:04 +0000 (14:30 -0400)
This prevents WSANOTINITIALISED errors and fixes bug 18668. Bugfix
on 0.2.8.1-alpha -- 1bac468882fd732460d8a25735131 specifically.

changes/bug18668 [new file with mode: 0644]
src/test/testing_common.c

diff --git a/changes/bug18668 b/changes/bug18668
new file mode 100644 (file)
index 0000000..4b186b5
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (tests):
+    - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
+      bugfix on 0.2.8.1-alpha.
index aeb1fa794dc767b4b1c2bc5c7f954221ca4b255c..39c3d02ab134be875462a3a54a82f0b1eab46ddd 100644 (file)
@@ -242,6 +242,8 @@ main(int c, const char **v)
   options = options_new();
   tor_threads_init();
 
+  network_init();
+
   struct tor_libevent_cfg cfg;
   memset(&cfg, 0, sizeof(cfg));
   tor_libevent_initialize(&cfg);
@@ -284,7 +286,6 @@ main(int c, const char **v)
     return 1;
   }
   rep_hist_init();
-  network_init();
   setup_directory();
   options_init(options);
   options->DataDirectory = tor_strdup(temp_dir);