aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-12-21 02:32:55 +0000
committerBart Polot <bart@net.in.tum.de>2012-12-21 02:32:55 +0000
commit836ae3f40cbd1734fb502609ca57afc2cb5a1a15 (patch)
tree71352b51127697324837fbe6d392991df0be4d26 /src/mesh
parent2a700aef3592b064a4807ec4d3f0e7485195b33a (diff)
downloadgnunet-836ae3f40cbd1734fb502609ca57afc2cb5a1a15.tar.gz
gnunet-836ae3f40cbd1734fb502609ca57afc2cb5a1a15.zip
- fix
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c4
-rw-r--r--src/mesh/mesh_tunnel_tree.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 06cdb241c..7c9addeb6 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -5850,14 +5850,14 @@ handle_mesh_tunnel_destroy (void *cls, const struct GNUNET_PeerIdentity *peer,
5850 1, GNUNET_NO); 5850 1, GNUNET_NO);
5851 return GNUNET_OK; 5851 return GNUNET_OK;
5852 } 5852 }
5853 parent = tree_get_predecessor(t->tree); 5853 parent = tree_get_predecessor (t->tree);
5854 pid = GNUNET_PEER_search (peer); 5854 pid = GNUNET_PEER_search (peer);
5855 if (pid != parent) 5855 if (pid != parent)
5856 { 5856 {
5857 unsigned int nc; 5857 unsigned int nc;
5858 5858
5859 tree_del_peer (t->tree, pid, &tunnel_child_removed, t); 5859 tree_del_peer (t->tree, pid, &tunnel_child_removed, t);
5860 nc = tree_count_children(t->tree); 5860 nc = tree_count_children (t->tree);
5861 if (nc > 0 || NULL != t->owner || t->nclients > 0) 5861 if (nc > 0 || NULL != t->owner || t->nclients > 0)
5862 { 5862 {
5863 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 5863 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
diff --git a/src/mesh/mesh_tunnel_tree.c b/src/mesh/mesh_tunnel_tree.c
index 3402f6743..41b25c3a4 100644
--- a/src/mesh/mesh_tunnel_tree.c
+++ b/src/mesh/mesh_tunnel_tree.c
@@ -742,7 +742,7 @@ tree_del_path (struct MeshTunnelTree *t, GNUNET_PEER_Id peer_id,
742 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tree: Deleting path to %s.\n", 742 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "tree: Deleting path to %s.\n",
743 GNUNET_i2s (&id)); 743 GNUNET_i2s (&id));
744#endif 744#endif
745 if (peer_id == t->root->peer) 745 if (NULL == t->root || peer_id == t->root->peer)
746 return NULL; 746 return NULL;
747 747
748 for (n = t->disconnected_head; NULL != n; n = n->next) 748 for (n = t->disconnected_head; NULL != n; n = n->next)