diff options
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r-- | src/transport/transport-testing.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c index 8f75c8109..b3c3a9399 100644 --- a/src/transport/transport-testing.c +++ b/src/transport/transport-testing.c @@ -633,7 +633,12 @@ GNUNET_TRANSPORT_TESTING_init () /* Init testing the testing lib */ tth->tl_system = GNUNET_TESTING_system_create ("transport-testing", "127.0.0.1"); - + if (NULL == tth->tl_system) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("Failed to initialize testing library!\n")); + GNUNET_free (tth); + return NULL; + } tth->hostkey_data = NULL; const char *hostkeys_file = "../../contrib/testing_hostkeys.dat"; |