(const struct GNUNET_TESTBED_PeerCreateSuccessEventMessage *) msg;
GNUNET_assert (NULL != fo_ctxt->cls);
remote_peer = fo_ctxt->cls;
- GNUNET_assert (remote_peer->details.remote.remote_host_id
- == ntohl (success_msg->peer_id));
peer_list_add (remote_peer);
}
msize = ntohs (msg->size);
while (NULL != (dll_op = dll_op_head))
{
GNUNET_TESTBED_operation_cancel (dll_op->op);
- GNUNET_free_non_null (dll_op->cls);
GNUNET_CONTAINER_DLL_remove (dll_op_head, dll_op_tail, dll_op);
GNUNET_free (dll_op);
}
dll_op->cls = &peers[peer_cnt];
dll_op->op = GNUNET_TESTBED_peer_create (mc,
hosts
- [peer_cnt % num_peers],
+ [peer_cnt % num_hosts],
cfg,
&peer_create_cb,
dll_op);