aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;