commit dbd01590cc9e6329fab1acd57b7380fb9f30a0ae Author: Nick Mathewson nickm@torproject.org Date: Fri Nov 4 13:30:10 2016 -0400
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. --- src/or/hs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/hs_cache.c b/src/or/hs_cache.c index 868f936..fe86e04 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; }
tor-commits@lists.torproject.org