Skip to content

Commit

Permalink
Merge branch 'tor-github/pr/1583'
Browse files Browse the repository at this point in the history
  • Loading branch information
dgoulet-tor committed Dec 10, 2019
2 parents 944bdde + c959ea7 commit 71767b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/test_hs_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,15 +528,14 @@ 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);
#else
ret = mkdir(perm_creds_dir, 0700);
#endif
tt_int_op(ret, OP_EQ, 0);

get_options_mutable()->ClientOnionAuthDir = perm_creds_dir;
}

tor_free(args);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 71767b0

Please sign in to comment.