aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-12-23 07:49:53 +0000
committerChristian Grothoff <christian@grothoff.org>2009-12-23 07:49:53 +0000
commit8149805b0539d29420b9e2b5a60fc09b2d69b348 (patch)
tree6707e092a566abd50336243714a25d4d03d3119b /src/peerinfo
parenta139d4a98fcebc8b3047515a59d569a640269272 (diff)
downloadgnunet-8149805b0539d29420b9e2b5a60fc09b2d69b348.tar.gz
gnunet-8149805b0539d29420b9e2b5a60fc09b2d69b348.zip
fix crash
Diffstat (limited to 'src/peerinfo')
-rw-r--r--src/peerinfo/gnunet-peerinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peerinfo/gnunet-peerinfo.c b/src/peerinfo/gnunet-peerinfo.c
index 3ade1468f..b5f41cc59 100644
--- a/src/peerinfo/gnunet-peerinfo.c
+++ b/src/peerinfo/gnunet-peerinfo.c
@@ -50,6 +50,10 @@ print_peer_info (void *cls,
50 50
51 /* FIXME: add printing of address information! 51 /* FIXME: add printing of address information!
52 => need extended transport API! */ 52 => need extended transport API! */
53 if (peer == NULL)
54 {
55 return;
56 }
53 GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc); 57 GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc);
54 if (be_quiet) 58 if (be_quiet)
55 printf ("%s\n", (const char *) &enc); 59 printf ("%s\n", (const char *) &enc);