From 1a68a2396c78c31817248d024737277872371a6f Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Wed, 5 Feb 2014 17:24:28 +0000 Subject: - fix crash on NULL hello with valid ID --- src/mesh/gnunet-service-mesh_hello.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", -- cgit v1.2.3