summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-04-05 13:16:03 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-04-05 13:16:03 +0000
commite4d67f259adee2cc76c788f0bc5afac616dfb1cb (patch)
tree3d28a1f032e8ec0b4a6bfc201c4506c6179c97ab /src
parent0f02b3d86f7e2948c2ec2c6a12cf1a2544a00778 (diff)
fix
Diffstat (limited to 'src')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c7
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,
tt = GNUNET_SCHEDULER_add_now (&state_machine, NULL);
return;
}
- friend_only = GNUNET_HELLO_is_friend_only (hello);
+ friend_only = GNUNET_NO;
+ if (NULL != hello)
+ friend_only = GNUNET_HELLO_is_friend_only (hello);
if ((GNUNET_YES == be_quiet) || (NULL == hello))
{
GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc);
@@ -407,7 +409,6 @@ print_my_uri (void *cls, const struct GNUNET_PeerIdentity *peer,
if (NULL == hello)
return;
-
char *uri = GNUNET_HELLO_compose_uri(hello, &GPI_plugins_find);
if (NULL != uri) {
printf ("%s\n", (const char *) uri);
@@ -643,7 +644,7 @@ state_machine (void *cls,
if (GNUNET_YES == get_uri)
{
GPI_plugins_load (cfg);
- pic = GNUNET_PEERINFO_iterate (peerinfo,include_friend_only, &my_peer_identity,
+ pic = GNUNET_PEERINFO_iterate (peerinfo, GNUNET_YES, &my_peer_identity,
TIMEOUT, &print_my_uri, NULL);
get_uri = GNUNET_NO;
return;