commit 0144fed3c81fc5cb741db9f11fc71e07d340c6d7 parent 519cc35772b40b7966cc7c3bb03d5961f6f265d1 Author: Christian Grothoff <christian@grothoff.org> Date: Fri, 25 Jan 2019 22:42:42 +0100 fix ats simple plugin crash Diffstat:
| M | src/ats/plugin_ats2_simple.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ats/plugin_ats2_simple.c b/src/ats/plugin_ats2_simple.c @@ -755,6 +755,8 @@ update_counters (void *cls, struct GNUNET_ATS_SessionHandle *best[GNUNET_MQ_PREFERENCE_COUNT]; (void) pid; + if (NULL == peer->sh_head) + return GNUNET_YES; /* no available session, cannot allocate bandwidth */ memset (best, 0, sizeof (best));