[tor-commits] [tor/master] Fix an assertion failure in hs_cache_free_all().
nickm at torproject.org
nickm at torproject.org
Fri Nov 4 18:48:12 UTC 2016
commit dbd01590cc9e6329fab1acd57b7380fb9f30a0ae
Author: Nick Mathewson <nickm at 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;
}
More information about the tor-commits
mailing list