aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-12 18:56:20 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-12 18:56:20 +0000
commitb07b67f7e840e64c24676d6102d6947edb44e4da (patch)
treef2d3dc3a05f8d520ab318eaae954c48d56f5b84b /src
parent09b512676542f09bcfb23c8c26a681ee2fd63288 (diff)
downloadgnunet-b07b67f7e840e64c24676d6102d6947edb44e4da.tar.gz
gnunet-b07b67f7e840e64c24676d6102d6947edb44e4da.zip
- don't return on found connection, more checks to go
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index a44fecab7..e92d54a65 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -335,6 +335,8 @@ estate2s (enum MeshTunnel3EState es)
335static int 335static int
336is_ready (struct MeshTunnel3 *t) 336is_ready (struct MeshTunnel3 *t)
337{ 337{
338 LOG (GNUNET_ERROR_TYPE_DEBUG, " ready: cs=%s, es=%s\n",
339 cstate2s (t->cstate), estate2s (t->estate));
338 return (MESH_TUNNEL3_READY == t->cstate 340 return (MESH_TUNNEL3_READY == t->cstate
339 && MESH_TUNNEL3_KEY_OK == t->estate) 341 && MESH_TUNNEL3_KEY_OK == t->estate)
340 || GMT_is_loopback (t); 342 || GMT_is_loopback (t);
@@ -1765,7 +1767,6 @@ GMT_remove_connection (struct MeshTunnel3 *t, struct MeshConnection *c)
1765 { 1767 {
1766 GNUNET_CONTAINER_DLL_remove (t->connection_head, t->connection_tail, aux); 1768 GNUNET_CONTAINER_DLL_remove (t->connection_head, t->connection_tail, aux);
1767 GNUNET_free (aux); 1769 GNUNET_free (aux);
1768 return;
1769 } 1770 }
1770 1771
1771 /* Start new connections if needed */ 1772 /* Start new connections if needed */