From: Christian Grothoff Date: Wed, 23 Dec 2009 07:49:53 +0000 (+0000) Subject: fix crash X-Git-Tag: initial-import-from-subversion-38251~22998 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8149805b0539d29420b9e2b5a60fc09b2d69b348;p=oweals%2Fgnunet.git fix crash --- 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, /* FIXME: add printing of address information! => need extended transport API! */ + if (peer == NULL) + { + return; + } GNUNET_CRYPTO_hash_to_enc (&peer->hashPubKey, &enc); if (be_quiet) printf ("%s\n", (const char *) &enc);