diff options
author | David Goulet <dgoulet@torproject.org> | 2018-09-05 13:37:37 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-09-07 14:03:55 -0400 |
commit | c76d00abfa779059b2936e5b84c032d0e36726d4 (patch) | |
tree | bffc22eca9bc5256d1d2979e5de66172bdaafbec /src/test/test_hs_descriptor.c | |
parent | 5e1d36c7db50d977c4a9a1ed9e80ac9800a6077e (diff) | |
download | tor-c76d00abfa779059b2936e5b84c032d0e36726d4.tar.gz tor-c76d00abfa779059b2936e5b84c032d0e36726d4.zip |
hs-v3: Make hs_desc_build_fake_authorized_client() return an object
Return a newly allocated fake client authorization object instead of taking
the object as a parameter.
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_hs_descriptor.c')
-rw-r--r-- | src/test/test_hs_descriptor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c index de977599a0..be7932cd2c 100644 --- a/src/test/test_hs_descriptor.c +++ b/src/test/test_hs_descriptor.c @@ -412,8 +412,7 @@ test_decode_descriptor(void *arg) /* We need to add fake auth clients here. */ for (i=0; i < 15; ++i) { - fake_client = tor_malloc_zero(sizeof(hs_desc_authorized_client_t)); - hs_desc_build_fake_authorized_client(fake_client); + fake_client = hs_desc_build_fake_authorized_client(); smartlist_add(clients, fake_client); } desc->superencrypted_data.clients = clients; |