浏览代码

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.
Nick Mathewson 8 年之前
父节点
当前提交
dbd01590cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/hs_cache.c

+ 1 - 1
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;
 }