diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-21 15:25:19 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-21 15:25:19 +0000 |
commit | af07bc33ad882cf6fcdc2df97a6bf950755916f7 (patch) | |
tree | 07bb3a617b6dcc160f378ba3a531e5f9d4a22da3 /src | |
parent | 15389f2525da19c32e040ac1d32d3473b43456df (diff) | |
download | gnunet-af07bc33ad882cf6fcdc2df97a6bf950755916f7.tar.gz gnunet-af07bc33ad882cf6fcdc2df97a6bf950755916f7.zip |
- debug
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 6d3c4c6e7..59df2ee81 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -792,14 +792,22 @@ void | |||
792 | GMT_remove_channel (struct MeshTunnel3 *t, struct MeshChannel *ch) | 792 | GMT_remove_channel (struct MeshTunnel3 *t, struct MeshChannel *ch) |
793 | { | 793 | { |
794 | struct MeshTChannel *aux; | 794 | struct MeshTChannel *aux; |
795 | struct MeshTChannel *next; | ||
795 | 796 | ||
796 | for (aux = t->channel_head; aux != NULL; aux = aux->next) | 797 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
798 | "Removing channel %p from tunnel %p\n", | ||
799 | ch, t); | ||
800 | for (aux = t->channel_head; aux != NULL; aux = next) | ||
801 | { | ||
802 | next = aux->next; | ||
797 | if (aux->ch == ch) | 803 | if (aux->ch == ch) |
798 | { | 804 | { |
805 | LOG (GNUNET_ERROR_TYPE_DEBUG, " found! %s\n", GMCH_2s (ch)); | ||
799 | GNUNET_CONTAINER_DLL_remove (t->channel_head, t->channel_tail, aux); | 806 | GNUNET_CONTAINER_DLL_remove (t->channel_head, t->channel_tail, aux); |
800 | GNUNET_free (aux); | 807 | GNUNET_free (aux); |
801 | return; | 808 | return; |
802 | } | 809 | } |
810 | } | ||
803 | } | 811 | } |
804 | 812 | ||
805 | 813 | ||