From: Nick Mathewson Date: Sat, 26 Apr 2014 04:12:16 +0000 (-0400) Subject: fix uninitialized memory reads from test_geoip_with_pt. Found with valgrind X-Git-Tag: tor-0.2.5.5-alpha~109^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fa296ce28ea875877ac2725dfd213e176881964;p=thirdparty%2Ftor.git fix uninitialized memory reads from test_geoip_with_pt. Found with valgrind --- diff --git a/src/test/test.c b/src/test/test.c index f7e26a6f3c..c96b396599 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);