fixes
[oweals/gnunet.git] / src / testbed / testbed_api_topology.c
index 04fea74b36107dc7744560c765eb357366cb8d0a..f7aa2ed5bdd8de7dbec2ad8f66101e9d7bd73e93 100644 (file)
@@ -145,8 +145,8 @@ oprelease_overlay_configure_topology (void *cls)
   {
     for (p = 0; p < tc->link_array_size; p++)
       if (NULL != tc->link_ops[p])
-       GNUNET_TESTBED_operation_cancel (tc->link_ops[p]);
-    GNUNET_free (tc->link_ops);
+       GNUNET_TESTBED_operation_cancel (tc->link_ops[p]);      
+    GNUNET_free (tc->link_ops);    
   }
   GNUNET_free_non_null (tc->link_array);
   GNUNET_free (tc);
@@ -231,6 +231,7 @@ GNUNET_TESTBED_overlay_configure_topology_va (void *op_cls,
     return NULL;
   c = peers[0]->controller;
   tc = GNUNET_malloc (sizeof (struct TopologyContext));
+  tc->peers = peers;
   switch (topo)
   {
   case GNUNET_TESTBED_TOPOLOGY_LINE: