[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] NULL out all mappings after tor_munmap_file()



commit 449b87791d5a9f15c63b39e0ff36f8ba89676c6c
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Mon Mar 31 11:42:49 2014 -0400

    NULL out all mappings after tor_munmap_file()
---
 src/or/microdesc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index f196536..9c91f17 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) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits