Browse Source

NULL out all mappings after tor_munmap_file()

Nick Mathewson 11 years ago
parent
commit
449b87791d
1 changed files with 1 additions and 0 deletions
  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,
       log_warn(LD_FS,
                "Failed to unmap old microdescriptor cache while rebuilding");
                "Failed to unmap old microdescriptor cache while rebuilding");
     }
     }
+    cache->cache_content = NULL;
   }
   }
 
 
   if (finish_writing_to_file(open_file) < 0) {
   if (finish_writing_to_file(open_file) < 0) {