[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 03/03: showing destination in path
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 03/03: showing destination in path |
Date: |
Thu, 28 Jun 2018 01:39:32 +0200 |
This is an automated email from the git hooks/post-receive script.
t3sserakt pushed a commit to branch master
in repository gnunet.
commit 842f1d970c56228154aa7d0a027ebeec296b9036
Author: t3sserakt <address@hidden>
AuthorDate: Thu Jun 28 01:39:24 2018 +0200
showing destination in path
---
src/cadet/gnunet-cadet.c | 4 ++--
src/cadet/gnunet-service-cadet.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/cadet/gnunet-cadet.c b/src/cadet/gnunet-cadet.c
index b22881907..d629df9b2 100644
--- a/src/cadet/gnunet-cadet.c
+++ b/src/cadet/gnunet-cadet.c
@@ -577,9 +577,9 @@ peer_callback (void *cls,
}else{
p = paths;
FPRINTF (stdout,
- "Path with offset %u: ",
+ "Indirekt path with offset %u: ",
offset);
- for (i = 0; i < offset && NULL != p;)
+ for (i = 0; i <= offset && NULL != p;)
{
FPRINTF (stdout,
"%s ",
diff --git a/src/cadet/gnunet-service-cadet.c b/src/cadet/gnunet-service-cadet.c
index 712c6339a..4568d2733 100644
--- a/src/cadet/gnunet-service-cadet.c
+++ b/src/cadet/gnunet-service-cadet.c
@@ -881,7 +881,7 @@ path_info_iterator (void *cls,
unsigned int path_length;
path_length = GCPP_get_length (path);
- path_size = sizeof (struct GNUNET_PeerIdentity) * (path_length - 1);
+ path_size = sizeof (struct GNUNET_PeerIdentity) * path_length;
if (sizeof (*resp) + path_size > UINT16_MAX)
{
LOG (GNUNET_ERROR_TYPE_WARNING,
--
To stop receiving notification emails like this one, please contact
address@hidden