gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r22930 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r22930 - gnunet/src/mesh
Date: Thu, 26 Jul 2012 17:54:51 +0200

Author: bartpolot
Date: 2012-07-26 17:54:51 +0200 (Thu, 26 Jul 2012)
New Revision: 22930

Modified:
   gnunet/src/mesh/mesh_api.c
Log:
- don't clear th immediately, in case notify_cb calls notify_tmt_rdy

Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2012-07-26 15:39:12 UTC (rev 22929)
+++ gnunet/src/mesh/mesh_api.c  2012-07-26 15:54:51 UTC (rev 22930)
@@ -1203,7 +1203,6 @@
   size_t psize;
 
   LOG (GNUNET_ERROR_TYPE_DEBUG, "Send packet() Buffer %u\n", size);
-  h->th = NULL;
   if ((0 == size) || (NULL == buf))
   {
     LOG (GNUNET_ERROR_TYPE_DEBUG, "Received NULL send callback\n");
@@ -1328,6 +1327,7 @@
 
       LOG (GNUNET_ERROR_TYPE_DEBUG, "  [%p] notify: %p, size %u\n",
            th, th->notify, th->size);
+      GNUNET_assert (NULL != t);
       LOG (GNUNET_ERROR_TYPE_DEBUG, "  pid %u, max %u\n", t->pid, t->max_pid);
 
       if (GNUNET_NO == th_is_payload (th) ||
@@ -1337,6 +1337,7 @@
         break;
       }
     }
+    h->th = NULL;
 
     if (GNUNET_YES == request)
     {




reply via email to

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