Browse Source

On geoip_free_all, reset geoip[6]_digest.

Nick Mathewson 6 years ago
parent
commit
1debe57563
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/or/geoip.c

+ 3 - 0
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));
 }