소스 검색

NULL out all mappings after tor_munmap_file()

Nick Mathewson 11 년 전
부모
커밋
449b87791d
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/or/microdesc.c

+ 1 - 0
src/or/microdesc.c

@@ -509,6 +509,7 @@ microdesc_cache_rebuild(microdesc_cache_t *cache, int force)
       log_warn(LD_FS,
                "Failed to unmap old microdescriptor cache while rebuilding");
     }
+    cache->cache_content = NULL;
   }
 
   if (finish_writing_to_file(open_file) < 0) {