aboutsummaryrefslogtreecommitdiff
path: root/src/regex
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-02-11 12:37:32 +0000
committerBart Polot <bart@net.in.tum.de>2013-02-11 12:37:32 +0000
commitaab5ab384bc5d5fbd2dab0ecc640b07db0710be7 (patch)
tree6fd0f3e80000d75ad80c88ca9d237ff783b3536f /src/regex
parent6c23b37c7f45e07fad720aa36c73091f52b459a1 (diff)
downloadgnunet-aab5ab384bc5d5fbd2dab0ecc640b07db0710be7.tar.gz
gnunet-aab5ab384bc5d5fbd2dab0ecc640b07db0710be7.zip
- fixes
Diffstat (limited to 'src/regex')
-rw-r--r--src/regex/gnunet-regex-profiler.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index fe54889ef..658037c91 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/src/regex/gnunet-regex-profiler.c
@@ -1144,7 +1144,7 @@ peer_churn_cb (void *cls, const char *emsg)
1144 if (NULL != emsg) 1144 if (NULL != emsg)
1145 { 1145 {
1146 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 1146 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1147 _("An operation has failed while starting peers\n")); 1147 _("An operation has failed while starting peers: %s\n"), emsg);
1148 GNUNET_TESTBED_operation_done (op); 1148 GNUNET_TESTBED_operation_done (op);
1149 if (GNUNET_SCHEDULER_NO_TASK != abort_task) 1149 if (GNUNET_SCHEDULER_NO_TASK != abort_task)
1150 GNUNET_SCHEDULER_cancel (abort_task); 1150 GNUNET_SCHEDULER_cancel (abort_task);
@@ -1225,7 +1225,8 @@ peer_create_cb (void *cls, struct GNUNET_TESTBED_Peer *peer, const char *emsg)
1225 for (peer_cnt = 0; peer_cnt < num_peers; peer_cnt++) 1225 for (peer_cnt = 0; peer_cnt < num_peers; peer_cnt++)
1226 { 1226 {
1227 dll_op = GNUNET_malloc (sizeof (struct DLLOperation)); 1227 dll_op = GNUNET_malloc (sizeof (struct DLLOperation));
1228 dll_op->op = GNUNET_TESTBED_peer_start (dll_op, peers[peer_cnt].peer_handle, 1228 dll_op->op = GNUNET_TESTBED_peer_start (dll_op,
1229 peers[peer_cnt].peer_handle,
1229 &peer_churn_cb, dll_op); 1230 &peer_churn_cb, dll_op);
1230 GNUNET_CONTAINER_DLL_insert_tail (dll_op_head, dll_op_tail, dll_op); 1231 GNUNET_CONTAINER_DLL_insert_tail (dll_op_head, dll_op_tail, dll_op);
1231 } 1232 }
@@ -1750,15 +1751,18 @@ run (void *cls, char *const *args, const char *cfgfile,
1750 GNUNET_TESTBED_HostHabitableCheckHandle *) 1751 GNUNET_TESTBED_HostHabitableCheckHandle *)
1751 * num_hosts); 1752 * num_hosts);
1752 for (nhost = 0; nhost < num_hosts; nhost++) 1753 for (nhost = 0; nhost < num_hosts; nhost++)
1753 { 1754 {
1754 if (NULL == (hc_handles[nhost] = GNUNET_TESTBED_is_host_habitable (hosts[nhost], config, 1755 hc_handles[nhost] = GNUNET_TESTBED_is_host_habitable (hosts[nhost], config,
1755 &host_habitable_cb, 1756 &host_habitable_cb,
1756 &hc_handles[nhost]))) 1757 &hc_handles[nhost]);
1758 if (NULL == hc_handles[nhost])
1757 { 1759 {
1760 int i;
1761
1758 GNUNET_break (0); 1762 GNUNET_break (0);
1759 for (nhost = 0; nhost < num_hosts; nhost++) 1763 for (i = 0; i <= nhost; i++)
1760 if (NULL != hc_handles[nhost]) 1764 if (NULL != hc_handles[i])
1761 GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[nhost]); 1765 GNUNET_TESTBED_is_host_habitable_cancel (hc_handles[i]);
1762 GNUNET_free (hc_handles); 1766 GNUNET_free (hc_handles);
1763 hc_handles = NULL; 1767 hc_handles = NULL;
1764 break; 1768 break;