diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-02 09:37:55 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-02 09:37:55 +0000 |
commit | 8e4a7c4f930757ce1bcab560c853caa7608fd930 (patch) | |
tree | 47159604f2929867f8230fbcbb291b0c821960e3 /src/transport/transport-testing.c | |
parent | 76df6221392b5d56fecf7de4ad7d5e2c7cfb3722 (diff) | |
download | gnunet-8e4a7c4f930757ce1bcab560c853caa7608fd930.tar.gz gnunet-8e4a7c4f930757ce1bcab560c853caa7608fd930.zip |
- minor changes
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r-- | src/transport/transport-testing.c | 9 |
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 | ||