aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-12-20 17:16:01 +0000
committerBart Polot <bart@net.in.tum.de>2012-12-20 17:16:01 +0000
commit3946a7576d65824856894ca0903dc213a6ee5182 (patch)
tree44feecdb816bd92af43c76faa10446434e23ee84 /src/mesh
parent70d43fa030afdbc411bd293434711f3d45fa026b (diff)
downloadgnunet-3946a7576d65824856894ca0903dc213a6ee5182.tar.gz
gnunet-3946a7576d65824856894ca0903dc213a6ee5182.zip
- dont destroy self
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_tunnel_tree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesh/mesh_tunnel_tree.c b/src/mesh/mesh_tunnel_tree.c
index b2cc2d9a7..f18f14da5 100644
--- a/src/mesh/mesh_tunnel_tree.c
+++ b/src/mesh/mesh_tunnel_tree.c
@@ -765,7 +765,9 @@ tree_del_path (struct MeshTunnelTree *t, GNUNET_PEER_Id peer_id,
765 GNUNET_CONTAINER_DLL_remove (parent->children_head, parent->children_tail, n); 765 GNUNET_CONTAINER_DLL_remove (parent->children_head, parent->children_tail, n);
766 n->parent = NULL; 766 n->parent = NULL;
767 767
768 while (MESH_PEER_RELAY == parent->status && NULL == parent->children_head) 768 while (MESH_PEER_RELAY == parent->status &&
769 NULL == parent->children_head &&
770 parent->peer != t->me->peer)
769 { 771 {
770#if MESH_TREE_DEBUG 772#if MESH_TREE_DEBUG
771 GNUNET_PEER_resolve (parent->peer, &id); 773 GNUNET_PEER_resolve (parent->peer, &id);
@@ -1066,7 +1068,7 @@ tree_del_peer (struct MeshTunnelTree *t, GNUNET_PEER_Id peer,
1066 GNUNET_break (0); 1068 GNUNET_break (0);
1067 return GNUNET_YES; 1069 return GNUNET_YES;
1068 } 1070 }
1069 GNUNET_break_op (NULL == n->children_head); 1071 GNUNET_break (NULL == n->children_head);
1070 tree_node_destroy (n); 1072 tree_node_destroy (n);
1071 if (NULL == t->root->children_head && t->me != t->root) 1073 if (NULL == t->root->children_head && t->me != t->root)
1072 { 1074 {