]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
NULL out all mappings after tor_munmap_file()
authorNick Mathewson <nickm@torproject.org>
Mon, 31 Mar 2014 15:42:49 +0000 (11:42 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 31 Mar 2014 15:42:49 +0000 (11:42 -0400)
src/or/microdesc.c

index f196536da7313e539d335511833672b0fe252ae7..9c91f17a6e3139b870515588c0a16c4e9a755b25 100644 (file)
@@ -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) {