diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-03 15:42:42 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-12-03 15:42:42 +0000 |
commit | 9455bca4742eb7570bb411c72540831e5e332222 (patch) | |
tree | 1b05fe49167b547caafb2947ffa0adf111589ffb /src/testbed/gnunet-testbed-profiler.c | |
parent | ebdccb6263edd5cc01109aba1648db456504f470 (diff) | |
download | gnunet-9455bca4742eb7570bb411c72540831e5e332222.tar.gz gnunet-9455bca4742eb7570bb411c72540831e5e332222.zip |
- fix
Diffstat (limited to 'src/testbed/gnunet-testbed-profiler.c')
-rw-r--r-- | src/testbed/gnunet-testbed-profiler.c | 8 |
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; |