From fee0c44cf30d884c1374af10bcb1f60606ca374e Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 25 Jun 2013 23:40:14 +0000 Subject: [PATCH] - fix unrelated bug in 2906 comments --- src/mesh/mesh2_api.c | 2 -- src/mesh/test_mesh2_local.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesh/mesh2_api.c b/src/mesh/mesh2_api.c index c07040192..bbb369c7b 100644 --- a/src/mesh/mesh2_api.c +++ b/src/mesh/mesh2_api.c @@ -495,9 +495,7 @@ destroy_tunnel (struct GNUNET_MESH_Tunnel *t, int call_cleaner) } h = t->mesh; - /* free all peer's ID */ GNUNET_CONTAINER_DLL_remove (h->tunnels_head, h->tunnels_tail, t); - GNUNET_PEER_change_rc (t->peer, -1); /* signal tunnel destruction */ if ( (NULL != h->cleaner) && (0 != t->peer) && (GNUNET_YES == call_cleaner) ) diff --git a/src/mesh/test_mesh2_local.c b/src/mesh/test_mesh2_local.c index 68452ffdf..770685184 100644 --- a/src/mesh/test_mesh2_local.c +++ b/src/mesh/test_mesh2_local.c @@ -58,7 +58,7 @@ do_shutdown (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) } if (NULL != t) { - GNUNET_MESH_tunnel_destroy(t); + GNUNET_MESH_tunnel_destroy (t); } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: D1\n"); if (NULL != mesh_peer_1) -- 2.25.1