diff options
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 4e1373663..88a04eea6 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -1003,6 +1003,8 @@ GMT_count_channels (struct MeshTunnel3 *t) | |||
1003 | enum MeshTunnel3State | 1003 | enum MeshTunnel3State |
1004 | GMT_get_state (struct MeshTunnel3 *t) | 1004 | GMT_get_state (struct MeshTunnel3 *t) |
1005 | { | 1005 | { |
1006 | if (NULL == t) | ||
1007 | return (enum MeshTunnel3State) -1; | ||
1006 | return t->state; | 1008 | return t->state; |
1007 | } | 1009 | } |
1008 | 1010 | ||