mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 20:33:31 +01:00
test: Fix memory leak in test_hs_common.c
Partially fixes #23223 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
60c7da71ab
commit
9df4261407
@ -409,7 +409,7 @@ test_responsible_hsdirs(void *arg)
|
|||||||
memset(&ri, 0 ,sizeof(routerinfo_t));
|
memset(&ri, 0 ,sizeof(routerinfo_t));
|
||||||
tor_addr_parse(&ipv4_addr, "127.0.0.1");
|
tor_addr_parse(&ipv4_addr, "127.0.0.1");
|
||||||
ri.addr = tor_addr_to_ipv4h(&ipv4_addr);
|
ri.addr = tor_addr_to_ipv4h(&ipv4_addr);
|
||||||
ri.nickname = tor_strdup("fatal");
|
ri.nickname = (char *) "fatal";
|
||||||
ri.protocol_list = (char *) "HSDir=1-2 LinkAuth=3";
|
ri.protocol_list = (char *) "HSDir=1-2 LinkAuth=3";
|
||||||
memset(ri.cache_info.identity_digest, 'A', DIGEST_LEN);
|
memset(ri.cache_info.identity_digest, 'A', DIGEST_LEN);
|
||||||
tt_assert(nodelist_set_routerinfo(&ri, NULL));
|
tt_assert(nodelist_set_routerinfo(&ri, NULL));
|
||||||
|
Loading…
Reference in New Issue
Block a user