mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
fix uninitialized memory reads from test_geoip_with_pt. Found with valgrind
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user