aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/test_mesh_small.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/test_mesh_small.c')
-rw-r--r--src/mesh/test_mesh_small.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c
index 1fbb45adf..74840df1c 100644
--- a/src/mesh/test_mesh_small.c
+++ b/src/mesh/test_mesh_small.c
@@ -527,10 +527,15 @@ data_callback (void *cls, struct GNUNET_MESH_Tunnel *tunnel, void **tunnel_ctx,
527 show_end_data(); 527 show_end_data();
528 } 528 }
529 if (test == P2P_SIGNAL) 529 if (test == P2P_SIGNAL)
530 {
530 GNUNET_MESH_tunnel_destroy (incoming_t); 531 GNUNET_MESH_tunnel_destroy (incoming_t);
532 incoming_t = NULL;
533 }
531 else 534 else
535 {
532 GNUNET_MESH_tunnel_destroy (t); 536 GNUNET_MESH_tunnel_destroy (t);
533 t = NULL; 537 t = NULL;
538 }
534 } 539 }
535 540
536 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task) 541 if (GNUNET_SCHEDULER_NO_TASK != disconnect_task)