diff options
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index d32256290..c3a0166a2 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -2068,9 +2068,9 @@ GMT_count_connections (struct MeshTunnel3 *t) | |||
2068 | struct MeshTConnection *iter; | 2068 | struct MeshTConnection *iter; |
2069 | unsigned int count; | 2069 | unsigned int count; |
2070 | 2070 | ||
2071 | for (count = 0, iter = t->connection_head; | 2071 | for (count = 0, iter = t->connection_head; NULL != iter; iter = iter->next) |
2072 | NULL != iter; | 2072 | if (MESH_CONNECTION_DESTROYED != GMC_get_state (iter->c)) |
2073 | iter = iter->next, count++); | 2073 | count++; |
2074 | 2074 | ||
2075 | return count; | 2075 | return count; |
2076 | } | 2076 | } |