aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_descriptor.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-09-05 13:37:37 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-09-07 14:03:55 -0400
commitc76d00abfa779059b2936e5b84c032d0e36726d4 (patch)
treebffc22eca9bc5256d1d2979e5de66172bdaafbec /src/test/test_hs_descriptor.c
parent5e1d36c7db50d977c4a9a1ed9e80ac9800a6077e (diff)
downloadtor-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.c3
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;