showing destination in path
authort3sserakt <t3ss@posteo.de>
Wed, 27 Jun 2018 23:39:24 +0000 (01:39 +0200)
committert3sserakt <t3ss@posteo.de>
Wed, 27 Jun 2018 23:39:24 +0000 (01:39 +0200)
src/cadet/gnunet-cadet.c
src/cadet/gnunet-service-cadet.c

index b22881907dc03a38ca0c8911e656d9db8a80c650..d629df9b2d1ac2cfa6a0aa2c188554228a6236a4 100644 (file)
@@ -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 ",
index 712c6339a17bbdb16ac91a8400c256d7d452051f..4568d2733fe73888dda40fda265d96c73a47155c 100644 (file)
@@ -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,