[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Set formerly-unused fields of a stack-allocated routerinfo
commit fc212458a67e1bc27a6456609b02eb703ef7be05
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Wed Aug 9 13:49:34 2017 -0400
Set formerly-unused fields of a stack-allocated routerinfo
---
src/test/test_hs_service.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index 60efca15f..340037955 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -895,6 +895,7 @@ test_service_event(void *arg)
* times we should retry a circuit. For this, we need to have a node_t
* that matches the identity of this IP. */
routerinfo_t ri;
+ memset(&ri, 0, sizeof(ri));
ip = helper_create_service_ip();
service_intro_point_add(service->desc_current->intro_points.map, ip);
memset(ri.cache_info.identity_digest, 'A', DIGEST_LEN);
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits