From 8e4a7c4f930757ce1bcab560c853caa7608fd930 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 2 Jul 2012 09:37:55 +0000 Subject: - minor changes --- src/transport/transport-testing.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/transport/transport-testing.c') 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) GNUNET_free_non_null (tth->hostkey_data); + GNUNET_TESTING_system_destroy (tth->tl_system, GNUNET_YES); + GNUNET_free (tth); tth = NULL; } @@ -625,9 +627,14 @@ GNUNET_TRANSPORT_TESTING_init () uint64_t fs; uint64_t total_hostkeys; - /* prepare hostkeys */ tth = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_TESTING_handle)); + + /* Init testing the testing lib */ + tth->tl_system = GNUNET_TESTING_system_create ("transport-testing", + "127.0.0.1"); + + tth->hostkey_data = NULL; const char *hostkeys_file = "../../contrib/testing_hostkeys.dat"; -- cgit v1.2.3