diff options
author | ng0 <ng0@n0.is> | 2017-11-28 19:59:46 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2017-11-28 19:59:46 +0000 |
commit | 862e488e08ca71db56dedd59059c5bb1a8c130a5 (patch) | |
tree | a7fb48afb7115113cc0572bf432ef3247b237398 /src/cadet | |
parent | d387ba039e99d07a50b3d7ffffc7e8a2e1abd938 (diff) | |
parent | a2ce0b6a76788e5a5fe32086c6619ffc143e09eb (diff) | |
download | gnunet-862e488e08ca71db56dedd59059c5bb1a8c130a5.tar.gz gnunet-862e488e08ca71db56dedd59059c5bb1a8c130a5.zip |
Merge branch 'master' of gnunet.org:gnunet into doc/documentation
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet_paths.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_paths.c b/src/cadet/gnunet-service-cadet_paths.c index e75fd393c..79eed0dcc 100644 --- a/src/cadet/gnunet-service-cadet_paths.c +++ b/src/cadet/gnunet-service-cadet_paths.c | |||
@@ -498,8 +498,8 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
498 | const struct GNUNET_PeerIdentity *pid; | 498 | const struct GNUNET_PeerIdentity *pid; |
499 | 499 | ||
500 | pid = (off < get_path_length) | 500 | pid = (off < get_path_length) |
501 | ? &get_path[get_path_length - off] | 501 | ? &get_path[get_path_length - off - 1] |
502 | : &put_path[get_path_length + put_path_length - off]; | 502 | : &put_path[get_path_length + put_path_length - off - 1]; |
503 | cpath[off - skip] = GCP_get (pid, | 503 | cpath[off - skip] = GCP_get (pid, |
504 | GNUNET_YES); | 504 | GNUNET_YES); |
505 | /* Check that no peer is twice on the path */ | 505 | /* Check that no peer is twice on the path */ |