From fe0c40c9b344853963dc7af0f746d8c772bb3a97 Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Fri, 4 Aug 2017 23:46:20 +0300 Subject: [PATCH] Fix broken intro point unittest. The structure was not zeroed out, and left some boolean fields uninitialized. --- src/test/test_hs_service.c | 2 ++ 1 file changed, 2 insertions(+) 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;