fix
authorSree Harsha Totakura <totakura@in.tum.de>
Wed, 18 Jul 2012 11:58:26 +0000 (11:58 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Wed, 18 Jul 2012 11:58:26 +0000 (11:58 +0000)
src/testbed/testbed_api.c

index 1815c5ec8c824a8b5d5a49c84ae8a01feb250add..5af8d71c61737b51709721bca524d9db61cb0d60 100644 (file)
@@ -505,7 +505,7 @@ static int helper_mst (void *cls, void *client,
                                                   config_size, GNUNET_NO));
   /* Change the hostname so that we can connect to it */
   GNUNET_CONFIGURATION_set_value_string (cp->cfg, "testbed", "hostname", 
-                                        (NULL == cp->cfg) ? "localhost" :
+                                        (NULL == cp->host) ? "localhost" :
                                         GNUNET_TESTBED_host_get_hostname_ (cp->host));
   cp->cb (cp->cls, cp->cfg, GNUNET_OK);
   return GNUNET_OK;