]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make the process_descs.c module dirauth-only.
authorNick Mathewson <nickm@torproject.org>
Tue, 30 Apr 2019 15:31:03 +0000 (11:31 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 30 Apr 2019 19:00:07 +0000 (15:00 -0400)
src/app/main/shutdown.c
src/core/include.am
src/feature/dirauth/dirauth_sys.c

index 9239a0cf0f9db7c8025fa521fbe00428fb63cc14..fd9512ce4b892a26b746b3ea6df1703013561ce4 100644 (file)
@@ -39,7 +39,6 @@
 #include "feature/dirauth/bwauth.h"
 #include "feature/dirauth/dirvote.h"
 #include "feature/dirauth/keypin.h"
-#include "feature/dirauth/process_descs.h"
 #include "feature/dirauth/shared_random.h"
 #include "feature/dircache/consdiffmgr.h"
 #include "feature/dircache/dirserv.h"
@@ -128,7 +127,6 @@ tor_free_all(int postfork)
   routerlist_free_all();
   networkstatus_free_all();
   addressmap_free_all();
-  dirserv_free_fingerprint_list();
   dirserv_free_all();
   dirserv_clear_measured_bw_cache();
   rend_cache_free_all();
index f3ba10a3dfa3f0e333c35993a0376570cb12fdb1..02b90ba1808732f4c2b52d105950052419490a53 100644 (file)
@@ -156,7 +156,6 @@ LIBTOR_APP_A_SOURCES +=                     \
        src/feature/dirauth/bwauth.c            \
        src/feature/dirauth/guardfraction.c     \
        src/feature/dirauth/reachability.c      \
-       src/feature/dirauth/process_descs.c     \
        src/feature/dirauth/voteflags.c
 
 if BUILD_NT_SERVICES
@@ -179,6 +178,7 @@ MODULE_DIRAUTH_SOURCES =                                    \
        src/feature/dirauth/dircollate.c                        \
        src/feature/dirauth/dirvote.c                           \
        src/feature/dirauth/dsigs_parse.c                       \
+       src/feature/dirauth/process_descs.c                     \
        src/feature/dirauth/recommend_pkg.c                     \
        src/feature/dirauth/shared_random.c                     \
        src/feature/dirauth/shared_random_state.c
index bb482f2685c536ee0c444213242b2e3d24e24e4b..b87fa5dc2973757e09095a7dcfd8e74de75bdd24 100644 (file)
@@ -9,6 +9,8 @@
 #include "feature/dirauth/dirauth_sys.h"
 #include "feature/dirauth/dirvote.h"
 #include "feature/dirauth/dirauth_periodic.h"
+#include "feature/dirauth/process_descs.h"
+
 #include "lib/subsys/subsys.h"
 
 static int
@@ -21,6 +23,7 @@ subsys_dirauth_initialize(void)
 static void
 subsys_dirauth_shutdown(void)
 {
+  dirserv_free_fingerprint_list();
   dirvote_free_all();
 }