summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-11-12 23:08:30 +0000
committerBart Polot <bart@net.in.tum.de>2011-11-12 23:08:30 +0000
commit829b321293d77c3501d7ad9d4f05e1234b85f349 (patch)
treef1ac14318051cf0fd22f0bf7537c6b0d7dc2fb11 /src
parentaab6dea2a1a680556aeb5c6a0ba0ae6b2a4d5beb (diff)
Fixed mantis #1900
Diffstat (limited to 'src')
-rw-r--r--src/mesh/mesh_tunnel_tree.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesh/mesh_tunnel_tree.c b/src/mesh/mesh_tunnel_tree.c
index 98ff9be88..e39558c0b 100644
--- a/src/mesh/mesh_tunnel_tree.c
+++ b/src/mesh/mesh_tunnel_tree.c
@@ -718,7 +718,6 @@ tree_get_path_to_peer (struct MeshTunnelTree *t, GNUNET_PEER_Id peer)
{
struct MeshTunnelTreeNode *n;
struct MeshPeerPath *p;
- GNUNET_PEER_Id myid = t->me->peer;
n = tree_find_peer (t, peer);
if (NULL == n)
@@ -726,7 +725,7 @@ tree_get_path_to_peer (struct MeshTunnelTree *t, GNUNET_PEER_Id peer)
p = path_new (0);
/* Building the path (inverted!) */
- while (n->peer != myid)
+ while (n->peer != 1)
{
GNUNET_array_append (p->peers, p->length, n->peer);
GNUNET_PEER_change_rc (n->peer, 1);
@@ -737,8 +736,8 @@ tree_get_path_to_peer (struct MeshTunnelTree *t, GNUNET_PEER_Id peer)
return NULL;
}
}
- GNUNET_array_append (p->peers, p->length, myid);
- GNUNET_PEER_change_rc (myid, 1);
+ GNUNET_array_append (p->peers, p->length, 1);
+ GNUNET_PEER_change_rc (1, 1);
path_invert (p);