fix uninitialized memory reads from test_geoip_with_pt. Found with valgrind

This commit is contained in:
Nick Mathewson
2014-04-26 00:12:16 -04:00
parent fa202c4127
commit 3fa296ce28
+2
View File
@@ -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);