diff options
author | David Barksdale <amatus@amat.us> | 2017-06-23 23:18:59 -0500 |
---|---|---|
committer | David Barksdale <amatus@amat.us> | 2017-06-23 23:18:59 -0500 |
commit | 9fd78c58ca973d35764d4d4e6a75aebdeb5ce77d (patch) | |
tree | 41df37b4764f36c6f717e2af264b62dc36c1b493 /src/topology | |
parent | ac3c4187299d8cba8453017fcec1292c00b697ee (diff) | |
download | gnunet-9fd78c58ca973d35764d4d4e6a75aebdeb5ce77d.tar.gz gnunet-9fd78c58ca973d35764d4d4e6a75aebdeb5ce77d.zip |
[topology] Fix blacklist condition
This fixes issue #5086.
Diffstat (limited to 'src/topology')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 4 |
1 files 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, | |||
1183 | "Topology would like %u connections with at least %u friends\n", | 1183 | "Topology would like %u connections with at least %u friends\n", |
1184 | target_connection_count, | 1184 | target_connection_count, |
1185 | minimum_friend_count); | 1185 | minimum_friend_count); |
1186 | if ( (friend_count < minimum_friend_count) && | 1186 | if ( (GNUNET_YES == friends_only) || |
1187 | (NULL == blacklist)) | 1187 | (minimum_friend_count > 0)) |
1188 | blacklist = GNUNET_TRANSPORT_blacklist (cfg, | 1188 | blacklist = GNUNET_TRANSPORT_blacklist (cfg, |
1189 | &blacklist_check, | 1189 | &blacklist_check, |
1190 | NULL); | 1190 | NULL); |