mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user