aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-06-25 23:40:14 +0000
committerBart Polot <bart@net.in.tum.de>2013-06-25 23:40:14 +0000
commitfee0c44cf30d884c1374af10bcb1f60606ca374e (patch)
tree6bf572c1d3651afe1ad9f4eeb5672e1b1e4e6c07 /src
parent4340fe90fc88c79a1f90b52ced9acfef6719b8be (diff)
downloadgnunet-fee0c44cf30d884c1374af10bcb1f60606ca374e.tar.gz
gnunet-fee0c44cf30d884c1374af10bcb1f60606ca374e.zip
- fix unrelated bug in 2906 comments
Diffstat (limited to 'src')
-rw-r--r--src/mesh/mesh2_api.c2
-rw-r--r--src/mesh/test_mesh2_local.c2
2 files changed, 1 insertions, 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)
495 } 495 }
496 h = t->mesh; 496 h = t->mesh;
497 497
498 /* free all peer's ID */
499 GNUNET_CONTAINER_DLL_remove (h->tunnels_head, h->tunnels_tail, t); 498 GNUNET_CONTAINER_DLL_remove (h->tunnels_head, h->tunnels_tail, t);
500 GNUNET_PEER_change_rc (t->peer, -1);
501 499
502 /* signal tunnel destruction */ 500 /* signal tunnel destruction */
503 if ( (NULL != h->cleaner) && (0 != t->peer) && (GNUNET_YES == call_cleaner) ) 501 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)
58 } 58 }
59 if (NULL != t) 59 if (NULL != t)
60 { 60 {
61 GNUNET_MESH_tunnel_destroy(t); 61 GNUNET_MESH_tunnel_destroy (t);
62 } 62 }
63 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: D1\n"); 63 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: D1\n");
64 if (NULL != mesh_peer_1) 64 if (NULL != mesh_peer_1)