Browse Source

Set formerly-unused fields of a stack-allocated routerinfo

Nick Mathewson 6 years ago
parent
commit
fc212458a6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/test/test_hs_service.c

+ 1 - 0
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);