fix memleak
[oweals/gnunet.git] / src / testbed / testbed_api_testbed.c
index 0987d9eb5dc7bfef180b13cf0798bac691df1e81..9ec47891e410cdb333c93dc406387ea3dfaad5ed 100644 (file)
@@ -629,7 +629,7 @@ GNUNET_TESTBED_run (const char *host_filename,
                                                           "OVERLAY_TOPOLOGY",
                                                           &topology))
   {
-    if (0 == strcmp (topology, "RANDOM"))
+    if (0 == strcasecmp (topology, "RANDOM"))
     {      
       rc->topology = GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI;
       if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (cfg, "testbed",
@@ -736,7 +736,7 @@ GNUNET_TESTBED_create (struct GNUNET_TESTBED_Controller *controller,
   testbed = GNUNET_TESTBED_create_va (controller, num_hosts, hosts, num_peers,
                                       peer_cfg, underlay_topology, vargs);
   va_end (vargs);
-  return NULL;
+  return testbed;
 }