aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/plugin_ats2_simple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ats/plugin_ats2_simple.c b/src/ats/plugin_ats2_simple.c
index 23907f669..1551420c5 100644
--- a/src/ats/plugin_ats2_simple.c
+++ b/src/ats/plugin_ats2_simple.c
@@ -755,6 +755,8 @@ update_counters (void *cls,
755 struct GNUNET_ATS_SessionHandle *best[GNUNET_MQ_PREFERENCE_COUNT]; 755 struct GNUNET_ATS_SessionHandle *best[GNUNET_MQ_PREFERENCE_COUNT];
756 756
757 (void) pid; 757 (void) pid;
758 if (NULL == peer->sh_head)
759 return GNUNET_YES; /* no available session, cannot allocate bandwidth */
758 memset (best, 760 memset (best,
759 0, 761 0,
760 sizeof (best)); 762 sizeof (best));