Set formerly-unused fields of a stack-allocated routerinfo

This commit is contained in:
Nick Mathewson 2017-08-09 13:49:34 -04:00
parent 3cddd6570c
commit fc212458a6

View 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);