aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-06-29 08:11:26 +0000
committerChristian Grothoff <christian@grothoff.org>2015-06-29 08:11:26 +0000
commitd953fdc6293a9468019eebbcfed92c3b5387ec48 (patch)
treecaaee5cdb9a22e91ad4cca14ddcff36bb08c796c /src
parent65f518e8036699fa3c574266d39e3cd1263af9e8 (diff)
downloadgnunet-d953fdc6293a9468019eebbcfed92c3b5387ec48.tar.gz
gnunet-d953fdc6293a9468019eebbcfed92c3b5387ec48.zip
fix #3871
Diffstat (limited to 'src')
-rw-r--r--src/ats/plugin_ats_proportional.c7
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;