aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-11-18 13:44:23 +0000
committerBart Polot <bart@net.in.tum.de>2011-11-18 13:44:23 +0000
commit55a8c591f7ad6796b2dc2c4c3d97c1daac5f425c (patch)
tree12333bfc1ff40b569fb050ec4ab99ee0a959d3d4 /src/mesh
parent54bcbbc78a67a4abe184bc45b0570a8d0beb36e4 (diff)
downloadgnunet-55a8c591f7ad6796b2dc2c4c3d97c1daac5f425c.tar.gz
gnunet-55a8c591f7ad6796b2dc2c4c3d97c1daac5f425c.zip
Fixed empty tree deletion problem (assert on test_mesh_api)
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_tunnel_tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesh/mesh_tunnel_tree.c b/src/mesh/mesh_tunnel_tree.c
index 10d87cc42..ee12e82c8 100644
--- a/src/mesh/mesh_tunnel_tree.c
+++ b/src/mesh/mesh_tunnel_tree.c
@@ -421,6 +421,11 @@ tree_new (GNUNET_PEER_Id peer)
421 tree->root = tree_node_new (NULL, peer); 421 tree->root = tree_node_new (NULL, peer);
422 tree->root->status = MESH_PEER_ROOT; 422 tree->root->status = MESH_PEER_ROOT;
423 423
424 if (1 == peer)
425 {
426 tree->me = tree->root;
427 }
428
424 return tree; 429 return tree;
425} 430}
426 431