diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-12-12 18:56:20 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-12-12 18:56:20 +0000 |
commit | b07b67f7e840e64c24676d6102d6947edb44e4da (patch) | |
tree | f2d3dc3a05f8d520ab318eaae954c48d56f5b84b /src | |
parent | 09b512676542f09bcfb23c8c26a681ee2fd63288 (diff) | |
download | gnunet-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.c | 3 |
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) | |||
335 | static int | 335 | static int |
336 | is_ready (struct MeshTunnel3 *t) | 336 | is_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 */ |