[topology] Fix blacklist condition
authorDavid Barksdale <amatus@amat.us>
Sat, 24 Jun 2017 04:18:59 +0000 (23:18 -0500)
committerDavid Barksdale <amatus@amat.us>
Sat, 24 Jun 2017 04:18:59 +0000 (23:18 -0500)
This fixes issue #5086.

src/topology/gnunet-daemon-topology.c

index 537ffe059f744f21a9e7dcc81ac29b81d1f6b908..4415d0a24c97b38818fbbcd9816fe12540d0b17b 100644 (file)
@@ -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);