From: Bart Polot Date: Sat, 12 Nov 2011 23:33:03 +0000 (+0000) Subject: Fix for missing me node causing assert and segfault errors X-Git-Tag: initial-import-from-subversion-38251~15944 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d9d6b4eac102fd3f326f6adccee2857e880d61ee;p=oweals%2Fgnunet.git Fix for missing me node causing assert and segfault errors --- diff --git a/src/mesh/mesh_tunnel_tree.c b/src/mesh/mesh_tunnel_tree.c index e39558c0b..b43fb2534 100644 --- a/src/mesh/mesh_tunnel_tree.c +++ b/src/mesh/mesh_tunnel_tree.c @@ -900,6 +900,8 @@ tree_add_path (struct MeshTunnelTree *t, const struct MeshPeerPath *p, } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tree: New node added.\n"); #endif + if (NULL == t->me) + t->me = tree_find_peer (t, 1); return GNUNET_OK; }