commit 07a1059ce5ec359a6228bde8bfe2b22428a81f69 parent 3da2a8e83017cc13752c2865624ef8ae7e333afb Author: Christian Grothoff <christian@grothoff.org> Date: Tue, 31 Jan 2017 11:28:33 +0100 do not test against unset cpath values that we skipped Diffstat:
| M | src/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 @@ -489,7 +489,7 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, cpath[off - skip] = GCP_get (pid, GNUNET_YES); /* Check that no peer is twice on the path */ - for (unsigned int i=0;i<off;i++) + for (unsigned int i=0;i<off - skip;i++) { if (cpath[i] == cpath[off]) {