aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorharsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-03 15:42:42 +0000
committerharsha <harsha@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-03 15:42:42 +0000
commitcc6aea7ff1ab1945b6c48a30a1d0b051bef57ece (patch)
tree1b05fe49167b547caafb2947ffa0adf111589ffb
parent4c439cd74a56673467f74c1d0878f40d553bb23f (diff)
- fix
git-svn-id: https://gnunet.org/svn/gnunet@25195 140774ce-b5e7-0310-ab8b-a85725594a96
-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 261bd51559..f0394bc09d 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)
if (NULL != hc_handles)
{
for (nhost = 0; nhost < num_hosts; nhost++)
- if (NULL != hc_handles[num_hosts])
- GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[num_hosts]);
+ if (NULL != hc_handles[nhost])
+ GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[nhost]);
GNUNET_free (hc_handles);
hc_handles = NULL;
}
@@ -776,8 +776,8 @@ run (void *cls, char *const *args, const char *cfgfile,
fprintf (stderr, _("Host %s cannot start testbed\n"),
GNUNET_TESTBED_host_get_hostname_ (hosts[nhost]));
for (nhost = 0; nhost < num_hosts; nhost++)
- if (NULL != hc_handles[num_hosts])
- GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[num_hosts]);
+ if (NULL != hc_handles[nhost])
+ GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[nhost]);
GNUNET_free (hc_handles);
hc_handles = NULL;
break;