summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-11-12 23:33:03 +0000
committerBart Polot <bart@net.in.tum.de>2011-11-12 23:33:03 +0000
commitd9d6b4eac102fd3f326f6adccee2857e880d61ee (patch)
treed0051540fc28b37c2e7251beb4fec6a1521103c9 /src
parent829b321293d77c3501d7ad9d4f05e1234b85f349 (diff)
Fix for missing me node causing assert and segfault errors
Diffstat (limited to 'src')
-rw-r--r--src/mesh/mesh_tunnel_tree.c2
1 files changed, 2 insertions, 0 deletions
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;
}