diff options
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; |