diff options
author | t3sserakt <t3ss@posteo.de> | 2023-10-18 14:58:21 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2023-10-18 14:58:21 +0200 |
commit | e0d28ef927d2e56bd185f5e2685acf8dccdc2826 (patch) | |
tree | dc64731fa09a8fe5b656806edf3f76f19a2b8935 /src | |
parent | c5cce2b62803f9ebd6de86da295540f852719dcd (diff) | |
download | gnunet-e0d28ef927d2e56bd185f5e2685acf8dccdc2826.tar.gz gnunet-e0d28ef927d2e56bd185f5e2685acf8dccdc2826.zip |
Hello: Fix another bug in cli tool to generate contrib hello file.
Diffstat (limited to 'src')
-rw-r--r-- | src/hello/gnunet-hello.c | 6 |
1 files 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, | |||
189 | address->transport_name); | 189 | address->transport_name); |
190 | addr = strchr (strchr (pos->api->address_to_string (pos, address, address->address_length), '.')+1, '.') + 1; | 190 | addr = strchr (strchr (pos->api->address_to_string (pos, address, address->address_length), '.')+1, '.') + 1; |
191 | } | 191 | } |
192 | pos = plugins_head->next; | 192 | pos = pos->next; |
193 | } | 193 | } |
194 | 194 | ||
195 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 195 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -343,7 +343,7 @@ run (void *cls, | |||
343 | { | 343 | { |
344 | char *pids; | 344 | char *pids; |
345 | 345 | ||
346 | pids = GNUNET_CRYPTO_eddsa_public_key_to_string (&pid.public_key); | 346 | pids = GNUNET_CRYPTO_eddsa_public_key_to_string (&my_full_id.public_key); |
347 | fprintf (stdout, "Processing HELLO for peer `%s'\n", pids); | 347 | fprintf (stdout, "Processing HELLO for peer `%s'\n", pids); |
348 | GNUNET_free (pids); | 348 | GNUNET_free (pids); |
349 | } | 349 | } |
@@ -352,7 +352,7 @@ run (void *cls, | |||
352 | /* &orig, */ | 352 | /* &orig, */ |
353 | /* GNUNET_HELLO_is_friend_only (orig)); */ | 353 | /* GNUNET_HELLO_is_friend_only (orig)); */ |
354 | 354 | ||
355 | builder = GNUNET_HELLO_builder_new (&pid); | 355 | builder = GNUNET_HELLO_builder_new (&my_full_id); |
356 | GNUNET_assert ( | 356 | GNUNET_assert ( |
357 | NULL == | 357 | NULL == |
358 | GNUNET_HELLO_iterate_addresses ((const struct GNUNET_HELLO_Message *) orig, GNUNET_NO, &add_to_builder, builder)); | 358 | GNUNET_HELLO_iterate_addresses ((const struct GNUNET_HELLO_Message *) orig, GNUNET_NO, &add_to_builder, builder)); |