mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Set formerly-unused fields of a stack-allocated routerinfo
This commit is contained in:
parent
3cddd6570c
commit
fc212458a6
@ -895,6 +895,7 @@ test_service_event(void *arg)
|
|||||||
* times we should retry a circuit. For this, we need to have a node_t
|
* times we should retry a circuit. For this, we need to have a node_t
|
||||||
* that matches the identity of this IP. */
|
* that matches the identity of this IP. */
|
||||||
routerinfo_t ri;
|
routerinfo_t ri;
|
||||||
|
memset(&ri, 0, sizeof(ri));
|
||||||
ip = helper_create_service_ip();
|
ip = helper_create_service_ip();
|
||||||
service_intro_point_add(service->desc_current->intro_points.map, ip);
|
service_intro_point_add(service->desc_current->intro_points.map, ip);
|
||||||
memset(ri.cache_info.identity_digest, 'A', DIGEST_LEN);
|
memset(ri.cache_info.identity_digest, 'A', DIGEST_LEN);
|
||||||
|
Loading…
Reference in New Issue
Block a user