From: Bart Polot Date: Wed, 5 Feb 2014 17:24:28 +0000 (+0000) Subject: - fix crash on NULL hello with valid ID X-Git-Tag: initial-import-from-subversion-38251~4774 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1a68a2396c78c31817248d024737277872371a6f;p=oweals%2Fgnunet.git - fix crash on NULL hello with valid ID --- diff --git a/src/mesh/gnunet-service-mesh_hello.c b/src/mesh/gnunet-service-mesh_hello.c index e98300b0b..971b26bdf 100644 --- a/src/mesh/gnunet-service-mesh_hello.c +++ b/src/mesh/gnunet-service-mesh_hello.c @@ -100,9 +100,9 @@ got_hello (void *cls, const struct GNUNET_PeerIdentity *id, { struct MeshPeer *peer; - if (NULL == id) + if (NULL == id || NULL == hello) { - LOG (GNUNET_ERROR_TYPE_ERROR, " hello with NULL id\n"); + LOG (GNUNET_ERROR_TYPE_DEBUG, " hello with id %p and msg %p\n", id, hello); return; } LOG (GNUNET_ERROR_TYPE_INFO, " hello for %s (%d bytes), expires on %s\n",