gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r30375 - gnunet/src/mesh
Date: Mon, 21 Oct 2013 17:25:19 +0200

Author: bartpolot
Date: 2013-10-21 17:25:19 +0200 (Mon, 21 Oct 2013)
New Revision: 30375

Modified:
   gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
- debug


Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2013-10-21 14:02:39 UTC 
(rev 30374)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c        2013-10-21 15:25:19 UTC 
(rev 30375)
@@ -792,14 +792,22 @@
 GMT_remove_channel (struct MeshTunnel3 *t, struct MeshChannel *ch)
 {
   struct MeshTChannel *aux;
+  struct MeshTChannel *next;
 
-  for (aux = t->channel_head; aux != NULL; aux = aux->next)
+  LOG (GNUNET_ERROR_TYPE_DEBUG,
+       "Removing channel %p from tunnel %p\n",
+       ch, t);
+  for (aux = t->channel_head; aux != NULL; aux = next)
+  {
+    next = aux->next;
     if (aux->ch == ch)
     {
+      LOG (GNUNET_ERROR_TYPE_DEBUG, " found! %s\n", GMCH_2s (ch));
       GNUNET_CONTAINER_DLL_remove (t->channel_head, t->channel_tail, aux);
       GNUNET_free (aux);
       return;
     }
+  }
 }
 
 




reply via email to

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