gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r12330 - gnunet/src/core
Date: Thu, 22 Jul 2010 13:56:28 +0200

Author: grothoff
Date: 2010-07-22 13:56:28 +0200 (Thu, 22 Jul 2010)
New Revision: 12330

Modified:
   gnunet/src/core/core_api.c
Log:
fixing 1584

Modified: gnunet/src/core/core_api.c
===================================================================
--- gnunet/src/core/core_api.c  2010-07-22 11:56:11 UTC (rev 12329)
+++ gnunet/src/core/core_api.c  2010-07-22 11:56:28 UTC (rev 12330)
@@ -317,8 +317,10 @@
   struct GNUNET_CORE_TransmitHandle *th;
   size_t ret;
 
-  h->cth = NULL;
+  h->cth = NULL;  
   th = h->pending_head;
+  if (th == NULL)
+    return 0;
   if (buf == NULL)
     {
       timeout_request (th, NULL);
@@ -811,6 +813,7 @@
     GNUNET_SCHEDULER_cancel (handle->sched, handle->reconnect_task);
   if (handle->client_notifications != NULL)
     GNUNET_CLIENT_disconnect (handle->client_notifications, GNUNET_NO);
+  GNUNET_break (handle->pending_head == NULL);
   GNUNET_free_non_null (handle->solicit_buffer);
   GNUNET_free (handle);
 }




reply via email to

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