diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-06-29 08:11:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-06-29 08:11:26 +0000 |
commit | d953fdc6293a9468019eebbcfed92c3b5387ec48 (patch) | |
tree | caaee5cdb9a22e91ad4cca14ddcff36bb08c796c /src | |
parent | 65f518e8036699fa3c574266d39e3cd1263af9e8 (diff) | |
download | gnunet-d953fdc6293a9468019eebbcfed92c3b5387ec48.tar.gz gnunet-d953fdc6293a9468019eebbcfed92c3b5387ec48.zip |
fix #3871
Diffstat (limited to 'src')
-rw-r--r-- | src/ats/plugin_ats_proportional.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c index 7dae3c8be..9dea83c56 100644 --- a/src/ats/plugin_ats_proportional.c +++ b/src/ats/plugin_ats_proportional.c | |||
@@ -824,9 +824,10 @@ update_active_address (struct GAS_PROPORTIONAL_Handle *s, | |||
824 | aw_min = NULL; | 824 | aw_min = NULL; |
825 | for (aw = asi_best->network->head; NULL != aw; aw = aw->next) | 825 | for (aw = asi_best->network->head; NULL != aw; aw = aw->next) |
826 | { | 826 | { |
827 | if (con_min > | 827 | if ( (con_min > |
828 | (a_con = s->env->get_connectivity (s->env->cls, | 828 | (a_con = s->env->get_connectivity (s->env->cls, |
829 | &aw->addr->peer))) | 829 | &aw->addr->peer))) && |
830 | (GNUNET_YES == aw->addr->active) ) | ||
830 | { | 831 | { |
831 | aw_min = aw; | 832 | aw_min = aw; |
832 | con_min = a_con; | 833 | con_min = a_con; |