From: David Barksdale Date: Sat, 24 Jun 2017 04:18:59 +0000 (-0500) Subject: [topology] Fix blacklist condition X-Git-Tag: gnunet-0.11.0rc0~216 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9fd78c58ca973d35764d4d4e6a75aebdeb5ce77d;p=oweals%2Fgnunet.git [topology] Fix blacklist condition This fixes issue #5086. --- diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 537ffe059..4415d0a24 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c @@ -1183,8 +1183,8 @@ run (void *cls, "Topology would like %u connections with at least %u friends\n", target_connection_count, minimum_friend_count); - if ( (friend_count < minimum_friend_count) && - (NULL == blacklist)) + if ( (GNUNET_YES == friends_only) || + (minimum_friend_count > 0)) blacklist = GNUNET_TRANSPORT_blacklist (cfg, &blacklist_check, NULL);