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

[tor-commits] [tor/master] On geoip_free_all, reset geoip[6]_digest.



commit 1debe575638411e5f50ab1a9e2a2f8f7579cfc39
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Mar 15 15:21:23 2018 +0100

    On geoip_free_all, reset geoip[6]_digest.
---
 src/or/geoip.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/or/geoip.c b/src/or/geoip.c
index 0ff1c6ce0..572bba577 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -1881,5 +1881,8 @@ geoip_free_all(void)
 
   clear_geoip_db();
   tor_free(bridge_stats_extrainfo);
+
+  memset(geoip_digest, 0, sizeof(geoip_digest));
+  memset(geoip6_digest, 0, sizeof(geoip6_digest));
 }
 



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