aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-01-25 22:42:42 +0100
committerChristian Grothoff <christian@grothoff.org>2019-01-25 22:42:42 +0100
commit0144fed3c81fc5cb741db9f11fc71e07d340c6d7 (patch)
tree4067171d1f1399719e0d08353b81260edfe694dc /src/ats
parent519cc35772b40b7966cc7c3bb03d5961f6f265d1 (diff)
downloadgnunet-0144fed3c81fc5cb741db9f11fc71e07d340c6d7.tar.gz
gnunet-0144fed3c81fc5cb741db9f11fc71e07d340c6d7.zip
fix ats simple plugin crash
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));