aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_service.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-08-04 23:46:20 +0300
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:35 -0400
commitfe0c40c9b344853963dc7af0f746d8c772bb3a97 (patch)
tree4483d806f897f7127cb5106723a8368829972d6e /src/test/test_hs_service.c
parent471489ca035a50733205f97c8d589d80c58e36e8 (diff)
downloadtor-fe0c40c9b344853963dc7af0f746d8c772bb3a97.tar.gz
tor-fe0c40c9b344853963dc7af0f746d8c772bb3a97.zip
Fix broken intro point unittest.
The structure was not zeroed out, and left some boolean fields uninitialized.
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r--src/test/test_hs_service.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index 10eeaa4321..6a7b9b5272 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -1092,6 +1092,8 @@ test_build_update_descriptors(void *arg)
tor_addr_t ipv4_addr;
curve25519_secret_key_t curve25519_secret_key;
+ memset(&ri, 0, sizeof(routerinfo_t));
+
tor_addr_parse(&ipv4_addr, "127.0.0.1");
ri.addr = tor_addr_to_ipv4h(&ipv4_addr);
ri.or_port = 1337;