diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-08-14 14:25:43 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-08-14 14:25:43 +0000 |
commit | 5d9e9fcf45766b369f2d6009da89977616447222 (patch) | |
tree | b41804bfba0ad876148dae68d6efb840b007eb7c /src/testbed/test_testbed_api_controllerlink.c | |
parent | 21bb57f2dd89640083dbd0478322924e4b8ad164 (diff) | |
download | gnunet-5d9e9fcf45766b369f2d6009da89977616447222.tar.gz gnunet-5d9e9fcf45766b369f2d6009da89977616447222.zip |
fixes
Diffstat (limited to 'src/testbed/test_testbed_api_controllerlink.c')
-rw-r--r-- | src/testbed/test_testbed_api_controllerlink.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testbed/test_testbed_api_controllerlink.c b/src/testbed/test_testbed_api_controllerlink.c index 99f0d7fd9..e9ef4dac9 100644 --- a/src/testbed/test_testbed_api_controllerlink.c +++ b/src/testbed/test_testbed_api_controllerlink.c | |||
@@ -126,16 +126,16 @@ do_shutdown (void *cls, const const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
126 | { | 126 | { |
127 | if (GNUNET_SCHEDULER_NO_TASK != abort_task) | 127 | if (GNUNET_SCHEDULER_NO_TASK != abort_task) |
128 | GNUNET_SCHEDULER_cancel (abort_task); | 128 | GNUNET_SCHEDULER_cancel (abort_task); |
129 | if (NULL != mc) | 129 | if (NULL != slave) |
130 | GNUNET_TESTBED_controller_disconnect (mc); | ||
131 | if (NULL != cp) | ||
132 | GNUNET_TESTBED_controller_stop (cp); | ||
133 | if (NULL != slave) | ||
134 | GNUNET_TESTBED_host_destroy (slave); | 130 | GNUNET_TESTBED_host_destroy (slave); |
135 | if (NULL != host) | 131 | if (NULL != host) |
136 | GNUNET_TESTBED_host_destroy (host); | 132 | GNUNET_TESTBED_host_destroy (host); |
133 | if (NULL != mc) | ||
134 | GNUNET_TESTBED_controller_disconnect (mc); | ||
137 | if (NULL != cfg) | 135 | if (NULL != cfg) |
138 | GNUNET_CONFIGURATION_destroy (cfg); | 136 | GNUNET_CONFIGURATION_destroy (cfg); |
137 | if (NULL != cp) | ||
138 | GNUNET_TESTBED_controller_stop (cp); | ||
139 | if (NULL != rh) | 139 | if (NULL != rh) |
140 | GNUNET_TESTBED_cancel_registration (rh); | 140 | GNUNET_TESTBED_cancel_registration (rh); |
141 | 141 | ||
@@ -250,7 +250,7 @@ static void | |||
250 | run (void *cls, char *const *args, const char *cfgfile, | 250 | run (void *cls, char *const *args, const char *cfgfile, |
251 | const struct GNUNET_CONFIGURATION_Handle *config) | 251 | const struct GNUNET_CONFIGURATION_Handle *config) |
252 | { | 252 | { |
253 | host = GNUNET_TESTBED_host_create ("127.0.0.1", NULL, 0); | 253 | host = GNUNET_TESTBED_host_create (NULL, NULL, 0); |
254 | GNUNET_assert (NULL != host); | 254 | GNUNET_assert (NULL != host); |
255 | cfg = GNUNET_CONFIGURATION_dup (config); | 255 | cfg = GNUNET_CONFIGURATION_dup (config); |
256 | cp = | 256 | cp = |