gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r18533 - gnunet/src/statistics


From: gnunet
Subject: [GNUnet-SVN] r18533 - gnunet/src/statistics
Date: Fri, 9 Dec 2011 17:09:05 +0100

Author: grothoff
Date: 2011-12-09 17:09:04 +0100 (Fri, 09 Dec 2011)
New Revision: 18533

Modified:
   gnunet/src/statistics/statistics_api.c
Log:
fix crash

Modified: gnunet/src/statistics/statistics_api.c
===================================================================
--- gnunet/src/statistics/statistics_api.c      2011-12-09 15:57:56 UTC (rev 
18532)
+++ gnunet/src/statistics/statistics_api.c      2011-12-09 16:09:04 UTC (rev 
18533)
@@ -679,6 +679,8 @@
   size_t ret;
 
   handle->th = NULL;
+  if (NULL == handle->current)
+    return 0;
   switch (handle->current->type)
   {
   case ACTION_GET:
@@ -877,6 +879,7 @@
   }
   GNUNET_CONTAINER_DLL_remove (h->action_head, h->action_tail, h->current);
   timeout = GNUNET_TIME_absolute_get_remaining (h->current->timeout);
+  GNUNET_assert (NULL == h->th);
   if (NULL ==
       (h->th =
        GNUNET_CLIENT_notify_transmit_ready (h->client, h->current->msize,




reply via email to

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