From f506381e287ef7adfa3979ba9c2b48e6e001cf1c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 22 Jan 2017 20:24:41 +0100 Subject: [PATCH] fix off-by-one --- 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 index 0fb558d81..976020bea 100644 --- a/src/cadet/gnunet-service-cadet-new_paths.c +++ b/src/cadet/gnunet-service-cadet-new_paths.c @@ -217,7 +217,7 @@ GCPP_release (struct CadetPeerPath *path) entry = path->entries[path->entries_length - 1]; path->hn = GCP_attach_path (entry->peer, path, - path->entries_length, + path->entries_length - 1, GNUNET_NO); if (NULL != path->hn) return; /* yep, got attached, we are done. */ -- 2.25.1