diff options
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 39d6060c3..dd3af08f9 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c | |||
@@ -347,7 +347,9 @@ print_peer_info (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
347 | tt = GNUNET_SCHEDULER_add_now (&state_machine, NULL); | 347 | tt = GNUNET_SCHEDULER_add_now (&state_machine, NULL); |
348 | return; | 348 | return; |
349 | } | 349 | } |
350 | friend_only = GNUNET_HELLO_is_friend_only (hello); | 350 | friend_only = GNUNET_NO; |
351 | if (NULL != hello) | ||
352 | friend_only = GNUNET_HELLO_is_friend_only (hello); | ||
351 | if ((GNUNET_YES == be_quiet) || (NULL == hello)) | 353 | if ((GNUNET_YES == be_quiet) || (NULL == hello)) |
352 | { | 354 | { |
353 | GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc); | 355 | GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc); |
@@ -407,7 +409,6 @@ print_my_uri (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
407 | 409 | ||
408 | if (NULL == hello) | 410 | if (NULL == hello) |
409 | return; | 411 | return; |
410 | |||
411 | char *uri = GNUNET_HELLO_compose_uri(hello, &GPI_plugins_find); | 412 | char *uri = GNUNET_HELLO_compose_uri(hello, &GPI_plugins_find); |
412 | if (NULL != uri) { | 413 | if (NULL != uri) { |
413 | printf ("%s\n", (const char *) uri); | 414 | printf ("%s\n", (const char *) uri); |
@@ -643,7 +644,7 @@ state_machine (void *cls, | |||
643 | if (GNUNET_YES == get_uri) | 644 | if (GNUNET_YES == get_uri) |
644 | { | 645 | { |
645 | GPI_plugins_load (cfg); | 646 | GPI_plugins_load (cfg); |
646 | pic = GNUNET_PEERINFO_iterate (peerinfo,include_friend_only, &my_peer_identity, | 647 | pic = GNUNET_PEERINFO_iterate (peerinfo, GNUNET_YES, &my_peer_identity, |
647 | TIMEOUT, &print_my_uri, NULL); | 648 | TIMEOUT, &print_my_uri, NULL); |
648 | get_uri = GNUNET_NO; | 649 | get_uri = GNUNET_NO; |
649 | return; | 650 | return; |