aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-03-31 11:42:49 -0400
committerNick Mathewson <nickm@torproject.org>2014-03-31 11:42:49 -0400
commit449b87791d5a9f15c63b39e0ff36f8ba89676c6c (patch)
tree8e2bd01f06d0b75a7afe64f2682018f58a0f29c0 /src
parent8e94d5f22ee863d57a76233cd75099d522bd38c7 (diff)
downloadtor-449b87791d5a9f15c63b39e0ff36f8ba89676c6c.tar
tor-449b87791d5a9f15c63b39e0ff36f8ba89676c6c.tar.gz
NULL out all mappings after tor_munmap_file()
Diffstat (limited to 'src')
-rw-r--r--src/or/microdesc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index f196536da..9c91f17a6 100644
--- a/src/or/microdesc.c
+++ b/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) {