aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-21 18:44:55 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-21 18:44:55 +0000
commit3b94efac795b446012cf2b7bc3aa1fd29ccf0908 (patch)
tree9d2ededef32e2d0c832ebdd0ce9128b5c709147d /src/mesh
parentcc7747441aaa0dd71baab61f8ef21ea4f48e6e51 (diff)
downloadgnunet-3b94efac795b446012cf2b7bc3aa1fd29ccf0908.tar.gz
gnunet-3b94efac795b446012cf2b7bc3aa1fd29ccf0908.zip
- fix path optimization bug
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 02f703007..e859230ec 100644
--- a/src/mesh/gnunet-service-mesh_connection.c
+++ b/src/mesh/gnunet-service-mesh_connection.c
@@ -1443,8 +1443,8 @@ build_path_from_peer_ids (struct GNUNET_PeerIdentity *peers,
1443 if (path->peers[j] == shortid) 1443 if (path->peers[j] == shortid)
1444 { 1444 {
1445 LOG (GNUNET_ERROR_TYPE_DEBUG, " already exists at pos %u\n", j); 1445 LOG (GNUNET_ERROR_TYPE_DEBUG, " already exists at pos %u\n", j);
1446 offset += i - j; 1446 offset = i - j;
1447 LOG (GNUNET_ERROR_TYPE_DEBUG, " offset now\n", offset); 1447 LOG (GNUNET_ERROR_TYPE_DEBUG, " offset now %u\n", offset);
1448 GNUNET_PEER_change_rc (shortid, -1); 1448 GNUNET_PEER_change_rc (shortid, -1);
1449 } 1449 }
1450 } 1450 }