diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-08-09 13:49:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-08-09 13:49:34 -0400 |
commit | fc212458a67e1bc27a6456609b02eb703ef7be05 (patch) | |
tree | 2bb31e928687b893a957920e719e23f7aa63c337 /src/test/test_hs_service.c | |
parent | 3cddd6570c6c1e30b002893262680c3d3235d6c3 (diff) | |
download | tor-fc212458a67e1bc27a6456609b02eb703ef7be05.tar.gz tor-fc212458a67e1bc27a6456609b02eb703ef7be05.zip |
Set formerly-unused fields of a stack-allocated routerinfo
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r-- | src/test/test_hs_service.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c index 60efca15f8..3400379551 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); |