[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix broken intro point unittest.
commit fe0c40c9b344853963dc7af0f746d8c772bb3a97
Author: George Kadianakis <desnacked@xxxxxxxxxx>
Date: Fri Aug 4 23:46:20 2017 +0300
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 10eeaa432..6a7b9b527 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;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits