diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-11-04 13:30:10 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-11-04 13:30:10 -0400 |
commit | dbd01590cc9e6329fab1acd57b7380fb9f30a0ae (patch) | |
tree | a52b73b89b2d48300a27054f7be443ba73813661 /src/or/hs_cache.c | |
parent | d88046a80d35bfc05c2b41e352beb9567262c53c (diff) | |
download | tor-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.c | 2 |
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; } |