mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
test: Missing hs_init() in some hs_control tests
Without the hs_init(), the caches are not initialized and the previous commit was causing an assert due to the missing caches. But regardless of that, those tests were not initializing but were calling hs_free_all(). Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
9278a24729
commit
a8456d2a11
1 changed files with 6 additions and 0 deletions
|
@ -218,6 +218,8 @@ test_hs_control_good_onion_client_auth_add(void *arg)
|
||||||
char *cp1 = NULL;
|
char *cp1 = NULL;
|
||||||
size_t sz;
|
size_t sz;
|
||||||
|
|
||||||
|
hs_init();
|
||||||
|
|
||||||
{ /* Setup the control conn */
|
{ /* Setup the control conn */
|
||||||
memset(&conn, 0, sizeof(control_connection_t));
|
memset(&conn, 0, sizeof(control_connection_t));
|
||||||
TO_CONN(&conn)->outbuf = buf_new();
|
TO_CONN(&conn)->outbuf = buf_new();
|
||||||
|
@ -415,6 +417,8 @@ test_hs_control_bad_onion_client_auth_add(void *arg)
|
||||||
size_t sz;
|
size_t sz;
|
||||||
char *args = NULL;
|
char *args = NULL;
|
||||||
|
|
||||||
|
hs_init();
|
||||||
|
|
||||||
{ /* Setup the control conn */
|
{ /* Setup the control conn */
|
||||||
memset(&conn, 0, sizeof(control_connection_t));
|
memset(&conn, 0, sizeof(control_connection_t));
|
||||||
TO_CONN(&conn)->outbuf = buf_new();
|
TO_CONN(&conn)->outbuf = buf_new();
|
||||||
|
@ -493,6 +497,8 @@ test_hs_control_store_permanent_creds(void *arg)
|
||||||
|
|
||||||
size_t sz;
|
size_t sz;
|
||||||
|
|
||||||
|
hs_init();
|
||||||
|
|
||||||
{ /* Setup the control conn */
|
{ /* Setup the control conn */
|
||||||
memset(&conn, 0, sizeof(control_connection_t));
|
memset(&conn, 0, sizeof(control_connection_t));
|
||||||
TO_CONN(&conn)->outbuf = buf_new();
|
TO_CONN(&conn)->outbuf = buf_new();
|
||||||
|
|
Loading…
Add table
Reference in a new issue