gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r37340 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r37340 - gnunet/src/core
Date: Thu, 23 Jun 2016 22:01:42 +0200

Author: grothoff
Date: 2016-06-23 22:01:41 +0200 (Thu, 23 Jun 2016)
New Revision: 37340

Modified:
   gnunet/src/core/core_api.c
Log:
do not crash for #4588

Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c  2016-06-23 19:55:15 UTC (rev 37339)
+++ gnunet/src/core/core_api.c  2016-06-23 20:01:41 UTC (rev 37340)
@@ -963,6 +963,11 @@
   struct SendMessageRequest *smr;
   struct GNUNET_MQ_Envelope *env;
 
+  if (NULL == handle->mq)
+  {
+    GNUNET_break (0); /* SEE #4588: do not call NTR from disconnect 
notification! */
+    return NULL;
+  }
   GNUNET_assert (NULL != notify);
   if ( (notify_size > GNUNET_CONSTANTS_MAX_ENCRYPTED_MESSAGE_SIZE) ||
        (notify_size + sizeof (struct SendMessage) >= 
GNUNET_SERVER_MAX_MESSAGE_SIZE) )




reply via email to

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