aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-22 02:58:24 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-22 02:58:24 +0000
commite1f228e84522cfbb7110a98a12fcd459b5c7fd66 (patch)
tree89a8f0894d5993fdf124b1037201058a96b6d1c1 /src/mesh
parent11a92ef8080441d3c24e9435d8ef1ecb8175cb3f (diff)
downloadgnunet-e1f228e84522cfbb7110a98a12fcd459b5c7fd66.tar.gz
gnunet-e1f228e84522cfbb7110a98a12fcd459b5c7fd66.zip
-fix own position
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c
index 5a40dbe43..40e43e991 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -1450,8 +1450,8 @@ build_path_from_peer_ids (struct GNUNET_PeerIdentity *peers,
1450 } 1450 }
1451 LOG (GNUNET_ERROR_TYPE_DEBUG, " storing at %u\n", i - offset); 1451 LOG (GNUNET_ERROR_TYPE_DEBUG, " storing at %u\n", i - offset);
1452 path->peers[i - offset] = shortid; 1452 path->peers[i - offset] = shortid;
1453 if (path->peers[i] == myid) 1453 if (path->peers[i - offset] == myid)
1454 *own_pos = i; 1454 *own_pos = i - offset;
1455 } 1455 }
1456 path->length -= offset; 1456 path->length -= offset;
1457 1457