aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-26 00:12:16 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-26 00:12:16 -0400
commit3fa296ce28ea875877ac2725dfd213e176881964 (patch)
tree4035512fa4c1fcb337a4c2c21149bc1dafc75539 /src/test
parentfa202c4127a7fb0769166cb43757d3fbc8726fc8 (diff)
downloadtor-3fa296ce28ea875877ac2725dfd213e176881964.tar
tor-3fa296ce28ea875877ac2725dfd213e176881964.tar.gz
fix uninitialized memory reads from test_geoip_with_pt. Found with valgrind
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c
index f7e26a6f3..c96b39659 100644
--- a/src/test/test.c
+++ b/src/test/test.c
@@ -1018,6 +1018,8 @@ test_geoip_with_pt(void)
get_options_mutable()->BridgeRelay = 1;
get_options_mutable()->BridgeRecordUsageByCountry = 1;
+ memset(&in6, 0, sizeof(in6));
+
/* No clients seen yet. */
s = geoip_get_transport_history();
tor_assert(!s);