gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33829 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r33829 - gnunet/src/cadet
Date: Tue, 24 Jun 2014 15:04:23 +0200

Author: bartpolot
Date: 2014-06-24 15:04:22 +0200 (Tue, 24 Jun 2014)
New Revision: 33829

Modified:
   gnunet/src/cadet/gnunet-service-cadet_connection.c
Log:
- don't try update info on NULL connections, avoid segfault for #3453

Modified: gnunet/src/cadet/gnunet-service-cadet_connection.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_connection.c  2014-06-24 11:13:37 UTC 
(rev 33828)
+++ gnunet/src/cadet/gnunet-service-cadet_connection.c  2014-06-24 13:04:22 UTC 
(rev 33829)
@@ -595,12 +595,14 @@
   {
     forced = GNUNET_NO;
   }
-  if (NULL == c
-      && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN
-      && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY)
+  if (NULL == c)
   {
-    LOG (GNUNET_ERROR_TYPE_ERROR, "Message %s sent on NULL connection!\n",
-         GC_m2s (type));
+    if (type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN
+        && type != GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY)
+    {
+      LOG (GNUNET_ERROR_TYPE_ERROR, "Message %s sent on NULL connection!\n",
+           GC_m2s (type));
+    }
     return;
   }
   LOG (GNUNET_ERROR_TYPE_DEBUG, " C_P- %p %u\n", c, c->pending_messages);




reply via email to

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