diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-01-31 17:02:24 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-01-31 17:02:24 +0100 |
commit | c7b18c8ad9c02d9b4848ab033cf11fa6e05627e4 (patch) | |
tree | 52ddc0788165823862cb7c91e5d924ad8576877a /src/cadet | |
parent | a8ad3c6b872407157dd28517649113f3ed7db62f (diff) | |
download | gnunet-c7b18c8ad9c02d9b4848ab033cf11fa6e05627e4.tar.gz gnunet-c7b18c8ad9c02d9b4848ab033cf11fa6e05627e4.zip |
fix loop detection logic
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet-new_paths.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_paths.c b/src/cadet/gnunet-service-cadet-new_paths.c index 28c43d1cf..39026dbe7 100644 --- 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, | |||
494 | /* Check that no peer is twice on the path */ | 494 | /* Check that no peer is twice on the path */ |
495 | for (unsigned int i=0;i<off - skip;i++) | 495 | for (unsigned int i=0;i<off - skip;i++) |
496 | { | 496 | { |
497 | if (cpath[i] == cpath[off]) | 497 | if (cpath[i] == cpath[off - skip]) |
498 | { | 498 | { |
499 | skip = off - i; | 499 | skip = off - i; |
500 | break; | 500 | break; |