summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2018-05-08 18:14:02 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2018-05-09 11:25:00 +0300
commit7e8c5e36622d4581840bb0a037a66d9504c433a5 (patch)
tree8a0b4d09fa19a29912dc65dba6957e0b1a824e19 /src
parent5dc00c06615ef1e99e1d82dfdf41823c0d4bf7f6 (diff)
downloadtor-7e8c5e36622d4581840bb0a037a66d9504c433a5.tar.gz
tor-7e8c5e36622d4581840bb0a037a66d9504c433a5.zip
Detect when v3 services get disabled after HUP.
Remove v3 optimization which made Tor not detect disabling services. This optimization is not so needed because we only call that function after HUP anyway. Fixes bug #25761.
Diffstat (limited to 'src')
-rw-r--r--src/or/hs_service.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c
index 8ddd68c69e..b9a1dfc36e 100644
--- a/src/or/hs_service.c
+++ b/src/or/hs_service.c
@@ -859,11 +859,6 @@ register_all_services(void)
tor_assert(hs_service_staging_list);
- /* We'll save us some allocation and computing time. */
- if (smartlist_len(hs_service_staging_list) == 0) {
- return;
- }
-
/* Allocate a new map that will replace the current one. */
new_service_map = tor_malloc_zero(sizeof(*new_service_map));
HT_INIT(hs_service_ht, new_service_map);