diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-11-12 23:33:03 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-11-12 23:33:03 +0000 |
commit | d9d6b4eac102fd3f326f6adccee2857e880d61ee (patch) | |
tree | d0051540fc28b37c2e7251beb4fec6a1521103c9 /src | |
parent | 829b321293d77c3501d7ad9d4f05e1234b85f349 (diff) | |
download | gnunet-d9d6b4eac102fd3f326f6adccee2857e880d61ee.tar.gz gnunet-d9d6b4eac102fd3f326f6adccee2857e880d61ee.zip |
Fix for missing me node causing assert and segfault errors
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/mesh_tunnel_tree.c | 2 |
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, | |||
900 | } | 900 | } |
901 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tree: New node added.\n"); | 901 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tree: New node added.\n"); |
902 | #endif | 902 | #endif |
903 | if (NULL == t->me) | ||
904 | t->me = tree_find_peer (t, 1); | ||
903 | return GNUNET_OK; | 905 | return GNUNET_OK; |
904 | } | 906 | } |
905 | 907 | ||