From 9fd78c58ca973d35764d4d4e6a75aebdeb5ce77d Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Fri, 23 Jun 2017 23:18:59 -0500 Subject: [PATCH] [topology] Fix blacklist condition This fixes issue #5086. --- src/topology/gnunet-daemon-topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.25.1