From f733e005acbcf3ff1398ec47327846509ee48339 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 25 Jul 2011 10:09:24 +0000 Subject: [PATCH] default topology bug --- src/testing/testing_group.c | 6 ++++++ src/testing/testing_peergroup.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index a48f628c9..4231e450a 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c @@ -5095,6 +5095,12 @@ stats_check_existing(struct GNUNET_TESTING_PeerGroup *pg, /** * Iterate over all (running) peers in the peer group, retrieve * all statistics from each. + * + * @param pg the peergroup to iterate statistics of + * @param cont continuation to call once all stats have been retrieved + * @param proc processing function for each statistic from each peer + * @param cls closure to pass to proc + * */ void GNUNET_TESTING_get_statistics(struct GNUNET_TESTING_PeerGroup *pg, diff --git a/src/testing/testing_peergroup.c b/src/testing/testing_peergroup.c index 4a1658207..fa2173f20 100644 --- a/src/testing/testing_peergroup.c +++ b/src/testing/testing_peergroup.c @@ -871,6 +871,7 @@ GNUNET_TESTING_peergroup_start(const struct GNUNET_CONFIGURATION_Handle *cfg, &pg_start_ctx->restrict_transports)) pg_start_ctx->restrict_transports = NULL; + pg_start_ctx->restrict_topology = GNUNET_TESTING_TOPOLOGY_NONE; if ((GNUNET_YES == GNUNET_CONFIGURATION_get_value_string (cfg, "testing", "blacklist_topology", @@ -882,6 +883,7 @@ GNUNET_TESTING_peergroup_start(const struct GNUNET_CONFIGURATION_Handle *cfg, "Invalid topology `%s' given for section %s option %s\n", temp_str, "TESTING", "BLACKLIST_TOPOLOGY"); } + GNUNET_free_non_null(temp_str); pg_start_ctx->cfg = cfg; -- 2.25.1