tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit fc212458a67e1bc27a6456609b02eb703ef7be05
parent 3cddd6570c6c1e30b002893262680c3d3235d6c3
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed,  9 Aug 2017 13:49:34 -0400

Set formerly-unused fields of a stack-allocated routerinfo

Diffstat:
Msrc/test/test_hs_service.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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);