From: Bart Polot Date: Fri, 18 Nov 2011 13:44:23 +0000 (+0000) Subject: Fixed empty tree deletion problem (assert on test_mesh_api) X-Git-Tag: initial-import-from-subversion-38251~15873 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=55a8c591f7ad6796b2dc2c4c3d97c1daac5f425c;p=oweals%2Fgnunet.git Fixed empty tree deletion problem (assert on test_mesh_api) --- 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) tree->root = tree_node_new (NULL, peer); tree->root->status = MESH_PEER_ROOT; + if (1 == peer) + { + tree->me = tree->root; + } + return tree; }