From fc212458a67e1bc27a6456609b02eb703ef7be05 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 9 Aug 2017 13:49:34 -0400 Subject: Set formerly-unused fields of a stack-allocated routerinfo --- src/test/test_hs_service.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/test_hs_service.c') 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); -- cgit v1.2.3-54-g00ecf