gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 09/11: Hello: Fix another bug in cli tool to generate contrib h


From: gnunet
Subject: [gnunet] 09/11: Hello: Fix another bug in cli tool to generate contrib hello file.
Date: Wed, 18 Oct 2023 15:49:38 +0200

This is an automated email from the git hooks/post-receive script.

t3sserakt pushed a commit to branch master
in repository gnunet.

commit e0d28ef927d2e56bd185f5e2685acf8dccdc2826
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Wed Oct 18 14:58:21 2023 +0200

    Hello: Fix another bug in cli tool to generate contrib hello file.
---
 src/hello/gnunet-hello.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/hello/gnunet-hello.c b/src/hello/gnunet-hello.c
index 501ec8a69..7f43e77b9 100644
--- a/src/hello/gnunet-hello.c
+++ b/src/hello/gnunet-hello.c
@@ -189,7 +189,7 @@ add_to_builder (void *cls,
               address->transport_name);
       addr = strchr (strchr (pos->api->address_to_string (pos, address, 
address->address_length), '.')+1, '.') + 1;
     }
-    pos = plugins_head->next;
+    pos = pos->next;
   }
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -343,7 +343,7 @@ run (void *cls,
     {
       char *pids;
 
-      pids = GNUNET_CRYPTO_eddsa_public_key_to_string (&pid.public_key);
+      pids = GNUNET_CRYPTO_eddsa_public_key_to_string (&my_full_id.public_key);
       fprintf (stdout, "Processing HELLO for peer `%s'\n", pids);
       GNUNET_free (pids);
     }
@@ -352,7 +352,7 @@ run (void *cls,
     /*                               &orig, */
     /*                               GNUNET_HELLO_is_friend_only (orig)); */
 
-    builder = GNUNET_HELLO_builder_new (&pid);
+    builder = GNUNET_HELLO_builder_new (&my_full_id);
     GNUNET_assert (
     NULL ==
     GNUNET_HELLO_iterate_addresses ((const struct GNUNET_HELLO_Message *) 
orig, GNUNET_NO, &add_to_builder, builder));

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]