gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit c7b18c8ad9c02d9b4848ab033cf11fa6e05627e4
parent a8ad3c6b872407157dd28517649113f3ed7db62f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 31 Jan 2017 17:02:24 +0100

fix loop detection logic

Diffstat:
Msrc/cadet/gnunet-service-cadet-new_paths.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cadet/gnunet-service-cadet-new_paths.c b/src/cadet/gnunet-service-cadet-new_paths.c @@ -494,7 +494,7 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, /* Check that no peer is twice on the path */ for (unsigned int i=0;i<off - skip;i++) { - if (cpath[i] == cpath[off]) + if (cpath[i] == cpath[off - skip]) { skip = off - i; break;