summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-03-15 15:21:23 +0100
committerNick Mathewson <nickm@torproject.org>2018-03-15 15:21:23 +0100
commit1debe575638411e5f50ab1a9e2a2f8f7579cfc39 (patch)
tree36001f6fa9acf152d533e688d959aed0f1698fac
parentffb00404b18978df960f6a0102294366e93ade96 (diff)
downloadtor-1debe575638411e5f50ab1a9e2a2f8f7579cfc39.tar.gz
tor-1debe575638411e5f50ab1a9e2a2f8f7579cfc39.zip
On geoip_free_all, reset geoip[6]_digest.
-rw-r--r--src/or/geoip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c
index 0ff1c6ce0d..572bba577f 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));
}