fixes
authorSree Harsha Totakura <totakura@in.tum.de>
Sun, 14 Oct 2012 09:30:02 +0000 (09:30 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Sun, 14 Oct 2012 09:30:02 +0000 (09:30 +0000)
src/testbed/gnunet-service-testbed.c
src/testbed/gnunet-testbed-profiler.c

index ea28af8d9bc2631ddb981d742f65f7ae7255aab4..4ef61becf3584f1843129179e7c526c4ceb81815 100644 (file)
@@ -1867,8 +1867,6 @@ peer_create_success_cb (void *cls, const struct GNUNET_MessageHeader *msg)
         (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);
index e1aa61a1be684e985853039530ddea89d342a322..64f41856988e6f776da2ba1b368eefb05a0e3212 100644 (file)
@@ -205,7 +205,6 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   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);
   }
@@ -329,7 +328,7 @@ controller_event_cb (void *cls,
             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);