diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-15 15:21:23 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-15 15:21:23 +0100 |
commit | 1debe575638411e5f50ab1a9e2a2f8f7579cfc39 (patch) | |
tree | 36001f6fa9acf152d533e688d959aed0f1698fac | |
parent | ffb00404b18978df960f6a0102294366e93ade96 (diff) | |
download | tor-1debe575638411e5f50ab1a9e2a2f8f7579cfc39.tar.gz tor-1debe575638411e5f50ab1a9e2a2f8f7579cfc39.zip |
On geoip_free_all, reset geoip[6]_digest.
-rw-r--r-- | src/or/geoip.c | 3 |
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)); } |