浏览代码

Avoid assertion failure

svn:r4931
Nick Mathewson 20 年之前
父节点
当前提交
548a863779
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/or/dirserv.c

+ 3 - 0
src/or/dirserv.c

@@ -1160,6 +1160,9 @@ dirserv_get_networkstatus_v2(smartlist_t *result,
 {
   tor_assert(result);
 
+  if (!cached_v2_networkstatus)
+    cached_v2_networkstatus = strmap_new();
+
   if (!(strcmp(key,"authority"))) {
     if (get_options()->AuthoritativeDir) {
       cached_dir_t *d =