projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- add separate encryption enabled mesh to avoid breakage during developement
[oweals/gnunet.git]
/
src
/
mesh
/
mesh_tunnel_tree.c
diff --git
a/src/mesh/mesh_tunnel_tree.c
b/src/mesh/mesh_tunnel_tree.c
index 3402f6743b7f53ee68bdaa3a8fff81e4bd151aeb..c2fe6c3d98776e90c4527d0882f42dd0d6228580 100644
(file)
--- a/
src/mesh/mesh_tunnel_tree.c
+++ b/
src/mesh/mesh_tunnel_tree.c
@@
-496,7
+496,7
@@
tree_get_predecessor (struct MeshTunnelTree *tree)
*
* @return peerinfo of the peer who is the first hop in the tunnel
* NULL on error
*
* @return peerinfo of the peer who is the first hop in the tunnel
* NULL on error
- *
+ *
* FIXME use PEER_Id
*/
struct GNUNET_PeerIdentity *
* FIXME use PEER_Id
*/
struct GNUNET_PeerIdentity *
@@
-742,7
+742,7
@@
tree_del_path (struct MeshTunnelTree *t, GNUNET_PEER_Id peer_id,
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tree: Deleting path to %s.\n",
GNUNET_i2s (&id));
#endif
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tree: Deleting path to %s.\n",
GNUNET_i2s (&id));
#endif
- if (peer_id == t->root->peer)
+ if (
NULL == t->root ||
peer_id == t->root->peer)
return NULL;
for (n = t->disconnected_head; NULL != n; n = n->next)
return NULL;
for (n = t->disconnected_head; NULL != n; n = n->next)