]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Set formerly-unused fields of a stack-allocated routerinfo
authorNick Mathewson <nickm@torproject.org>
Wed, 9 Aug 2017 17:49:34 +0000 (13:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 9 Aug 2017 17:49:34 +0000 (13:49 -0400)
src/test/test_hs_service.c

index 60efca15f83273760287e59408717ab2ee44eb5e..3400379551166bc56bbc3849c4509496f511d155 100644 (file)
@@ -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);