aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-02-05 17:24:28 +0000
committerBart Polot <bart@net.in.tum.de>2014-02-05 17:24:28 +0000
commit1a68a2396c78c31817248d024737277872371a6f (patch)
tree7e338d82d32752a6fdc0c70950ba738f9876bcb8
parent04a4b76995b06f134923b1cc157195c87c68c188 (diff)
downloadgnunet-1a68a2396c78c31817248d024737277872371a6f.tar.gz
gnunet-1a68a2396c78c31817248d024737277872371a6f.zip
- fix crash on NULL hello with valid ID
-rw-r--r--src/mesh/gnunet-service-mesh_hello.c4
1 files 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,
100{ 100{
101 struct MeshPeer *peer; 101 struct MeshPeer *peer;
102 102
103 if (NULL == id) 103 if (NULL == id || NULL == hello)
104 { 104 {
105 LOG (GNUNET_ERROR_TYPE_ERROR, " hello with NULL id\n"); 105 LOG (GNUNET_ERROR_TYPE_DEBUG, " hello with id %p and msg %p\n", id, hello);
106 return; 106 return;
107 } 107 }
108 LOG (GNUNET_ERROR_TYPE_INFO, " hello for %s (%d bytes), expires on %s\n", 108 LOG (GNUNET_ERROR_TYPE_INFO, " hello for %s (%d bytes), expires on %s\n",