From: Christian Grothoff Date: Sun, 22 Jan 2017 19:24:41 +0000 (+0100) Subject: fix off-by-one X-Git-Tag: taler-0.2.1~357 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f506381e287ef7adfa3979ba9c2b48e6e001cf1c;p=oweals%2Fgnunet.git fix off-by-one --- 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. */