diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-09 11:53:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-09 11:53:15 -0400 |
commit | 394f102ea6b0494cde97769a99d75e91b5743616 (patch) | |
tree | 5b6ae2c3846e26a77769e0a79780c7025dfb5fd4 /src/or | |
parent | be5b4415c2dce243a6249e6ca14b65423c9b0746 (diff) | |
parent | 7e8c5e36622d4581840bb0a037a66d9504c433a5 (diff) | |
download | tor-394f102ea6b0494cde97769a99d75e91b5743616.tar.gz tor-394f102ea6b0494cde97769a99d75e91b5743616.zip |
Merge remote-tracking branch 'asn-github/bug25761_032' into maint-0.3.2
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/hs_service.c | 5 | ||||
-rw-r--r-- | src/or/rendservice.c | 5 |
2 files changed, 3 insertions, 7 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); diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 2c5c5840a1..fed8c97ebb 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -618,10 +618,11 @@ void rend_service_prune_list(void) { smartlist_t *old_service_list = rend_service_list; - /* Don't try to prune anything if we have no staging list. */ + if (!rend_service_staging_list) { - return; + rend_service_staging_list = smartlist_new(); } + rend_service_prune_list_impl_(); if (old_service_list) { /* Every remaining service in the old list have been removed from the |