From: Nathan S. Evans Date: Mon, 25 Jul 2011 10:09:24 +0000 (+0000) Subject: default topology bug X-Git-Tag: initial-import-from-subversion-38251~17679 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f733e005acbcf3ff1398ec47327846509ee48339;p=oweals%2Fgnunet.git default topology bug --- 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;