aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-13 17:23:37 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-13 17:23:37 -0400
commitef4ea864ea66059f7fd71ac68cfe6067f32149f1 (patch)
treeef4e15abb8f5b846269479ba7cdc8320602f903d /src/or/main.c
parent62d241ad22b173ee908ad9cc2c55f5b10d22c2d9 (diff)
parent965e3a6628f26d5fb1422fb04aa12e807537a32a (diff)
downloadtor-ef4ea864ea66059f7fd71ac68cfe6067f32149f1.tar.gz
tor-ef4ea864ea66059f7fd71ac68cfe6067f32149f1.zip
Merge remote-tracking branch 'dgoulet/ticket21979_032_04'
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 0a0943d344..dc23184961 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2508,9 +2508,6 @@ do_main_loop(void)
}
}
- /* Initialize relay-side HS circuitmap */
- hs_circuitmap_init();
-
/* set up once-a-second callback. */
if (! second_timer) {
struct timeval one_second;
@@ -3022,9 +3019,10 @@ tor_init(int argc, char *argv[])
rep_hist_init();
/* Initialize the service cache. */
rend_cache_init();
- hs_cache_init();
addressmap_init(); /* Init the client dns cache. Do it always, since it's
* cheap. */
+ /* Initialize the HS subsystem. */
+ hs_init();
{
/* We search for the "quiet" option first, since it decides whether we
@@ -3224,10 +3222,8 @@ tor_free_all(int postfork)
networkstatus_free_all();
addressmap_free_all();
dirserv_free_all();
- rend_service_free_all();
rend_cache_free_all();
rend_service_authorization_free_all();
- hs_cache_free_all();
rep_hist_free_all();
dns_free_all();
clear_pending_onions();
@@ -3240,7 +3236,6 @@ tor_free_all(int postfork)
connection_edge_free_all();
scheduler_free_all();
nodelist_free_all();
- hs_circuitmap_free_all();
microdesc_free_all();
routerparse_free_all();
ext_orport_free_all();
@@ -3249,6 +3244,7 @@ tor_free_all(int postfork)
protover_free_all();
bridges_free_all();
consdiffmgr_free_all();
+ hs_free_all();
if (!postfork) {
config_free_all();
or_state_free_all();