aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/testbed/gnunet-testbed-profiler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c
index 261bd5155..f0394bc09 100644
--- a/src/testbed/gnunet-testbed-profiler.c
+++ b/src/testbed/gnunet-testbed-profiler.c
@@ -261,8 +261,8 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
261 if (NULL != hc_handles) 261 if (NULL != hc_handles)
262 { 262 {
263 for (nhost = 0; nhost < num_hosts; nhost++) 263 for (nhost = 0; nhost < num_hosts; nhost++)
264 if (NULL != hc_handles[num_hosts]) 264 if (NULL != hc_handles[nhost])
265 GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[num_hosts]); 265 GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[nhost]);
266 GNUNET_free (hc_handles); 266 GNUNET_free (hc_handles);
267 hc_handles = NULL; 267 hc_handles = NULL;
268 } 268 }
@@ -776,8 +776,8 @@ run (void *cls, char *const *args, const char *cfgfile,
776 fprintf (stderr, _("Host %s cannot start testbed\n"), 776 fprintf (stderr, _("Host %s cannot start testbed\n"),
777 GNUNET_TESTBED_host_get_hostname_ (hosts[nhost])); 777 GNUNET_TESTBED_host_get_hostname_ (hosts[nhost]));
778 for (nhost = 0; nhost < num_hosts; nhost++) 778 for (nhost = 0; nhost < num_hosts; nhost++)
779 if (NULL != hc_handles[num_hosts]) 779 if (NULL != hc_handles[nhost])
780 GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[num_hosts]); 780 GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[nhost]);
781 GNUNET_free (hc_handles); 781 GNUNET_free (hc_handles);
782 hc_handles = NULL; 782 hc_handles = NULL;
783 break; 783 break;