fixs for crash while adding slaves with id greater than 9
[oweals/gnunet.git] / src / testbed / testbed_api_testbed.c
index 2e597e2eb5847ff5e92f5ebaeb176b5490972e1a..02b20d2145873377de23cf84c1ac17a7303111d0 100644 (file)
@@ -199,7 +199,7 @@ start_peers_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   for (peer = 0; peer < rc->num_peers; peer++)
   {
     dll_op = GNUNET_malloc (sizeof (struct DLLOperation));
-    dll_op->op = GNUNET_TESTBED_peer_start (rc->peers[peer], NULL, NULL);
+    dll_op->op = GNUNET_TESTBED_peer_start (NULL, rc->peers[peer], NULL, NULL);
     dll_op->cls = rc->peers[peer];
     GNUNET_CONTAINER_DLL_insert_tail (rc->dll_op_head, rc->dll_op_tail, dll_op);
   }