aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_cache.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-04 13:30:10 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-04 13:30:10 -0400
commitdbd01590cc9e6329fab1acd57b7380fb9f30a0ae (patch)
treea52b73b89b2d48300a27054f7be443ba73813661 /src/or/hs_cache.c
parentd88046a80d35bfc05c2b41e352beb9567262c53c (diff)
downloadtor-dbd01590cc9e6329fab1acd57b7380fb9f30a0ae.tar.gz
tor-dbd01590cc9e6329fab1acd57b7380fb9f30a0ae.zip
Fix an assertion failure in hs_cache_free_all().
It's possible for Tor to decide to exit before it's 100% done initializing. So, don't assert that the initialization is done.
Diffstat (limited to 'src/or/hs_cache.c')
-rw-r--r--src/or/hs_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hs_cache.c b/src/or/hs_cache.c
index 868f936422..fe86e04694 100644
--- a/src/or/hs_cache.c
+++ b/src/or/hs_cache.c
@@ -379,6 +379,6 @@ hs_cache_init(void)
void
hs_cache_free_all(void)
{
- tor_assert(hs_cache_v3_dir);
digest256map_free(hs_cache_v3_dir, cache_dir_desc_free_);
+ hs_cache_v3_dir = NULL;
}