aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r--src/transport/transport-testing.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 3411f7f43..8f75c8109 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -608,6 +608,8 @@ GNUNET_TRANSPORT_TESTING_done (struct GNUNET_TRANSPORT_TESTING_handle *tth)
608 608
609 GNUNET_free_non_null (tth->hostkey_data); 609 GNUNET_free_non_null (tth->hostkey_data);
610 610
611 GNUNET_TESTING_system_destroy (tth->tl_system, GNUNET_YES);
612
611 GNUNET_free (tth); 613 GNUNET_free (tth);
612 tth = NULL; 614 tth = NULL;
613} 615}
@@ -625,9 +627,14 @@ GNUNET_TRANSPORT_TESTING_init ()
625 uint64_t fs; 627 uint64_t fs;
626 uint64_t total_hostkeys; 628 uint64_t total_hostkeys;
627 629
628
629 /* prepare hostkeys */ 630 /* prepare hostkeys */
630 tth = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_TESTING_handle)); 631 tth = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_TESTING_handle));
632
633 /* Init testing the testing lib */
634 tth->tl_system = GNUNET_TESTING_system_create ("transport-testing",
635 "127.0.0.1");
636
637
631 tth->hostkey_data = NULL; 638 tth->hostkey_data = NULL;
632 const char *hostkeys_file = "../../contrib/testing_hostkeys.dat"; 639 const char *hostkeys_file = "../../contrib/testing_hostkeys.dat";
633 640