gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: fix ats simple plugin crash


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix ats simple plugin crash
Date: Fri, 25 Jan 2019 22:42:47 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 0144fed3c fix ats simple plugin crash
0144fed3c is described below

commit 0144fed3c81fc5cb741db9f11fc71e07d340c6d7
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jan 25 22:42:42 2019 +0100

    fix ats simple plugin crash
---
 src/ats/plugin_ats2_simple.c | 2 ++
 1 file changed, 2 insertions(+)

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,
   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));

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]