summaryrefslogtreecommitdiff
path: root/src/test/test_hs_control.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-12-10 09:42:09 -0500
committerDavid Goulet <dgoulet@torproject.org>2019-12-10 09:42:09 -0500
commit71767b06ae4905aa73992b19bc49f1654efe7a4e (patch)
tree5961a2a47260d42bc6e657973f35e42bd6494ed7 /src/test/test_hs_control.c
parent944bdde50edbc6030dfc954ff501c92cd9e73fb0 (diff)
parentc959ea7558d059ebcf167d573b7a4327834982c7 (diff)
downloadtor-71767b06ae4905aa73992b19bc49f1654efe7a4e.tar.gz
tor-71767b06ae4905aa73992b19bc49f1654efe7a4e.zip
Merge branch 'tor-github/pr/1583'
Diffstat (limited to 'src/test/test_hs_control.c')
-rw-r--r--src/test/test_hs_control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_hs_control.c b/src/test/test_hs_control.c
index 97a6f259e3..dab0a8c609 100644
--- a/src/test/test_hs_control.c
+++ b/src/test/test_hs_control.c
@@ -528,6 +528,7 @@ test_hs_control_store_permanent_creds(void *arg)
{ /* Setup ClientOnionAuthDir */
int ret;
char *perm_creds_dir = tor_strdup(get_fname("permanent_credentials"));
+ get_options_mutable()->ClientOnionAuthDir = perm_creds_dir;
#ifdef _WIN32
ret = mkdir(perm_creds_dir);
@@ -535,8 +536,6 @@ test_hs_control_store_permanent_creds(void *arg)
ret = mkdir(perm_creds_dir, 0700);
#endif
tt_int_op(ret, OP_EQ, 0);
-
- get_options_mutable()->ClientOnionAuthDir = perm_creds_dir;
}
tor_free(args);
@@ -625,6 +624,7 @@ test_hs_control_store_permanent_creds(void *arg)
tt_uint_op(digest256map_size(client_auths), OP_EQ, 0);
done:
+ tor_free(get_options_mutable()->ClientOnionAuthDir);
tor_free(args);
tor_free(cp1);
buf_free(TO_CONN(&conn)->outbuf);