- fix crash on NULL hello with valid ID
authorBart Polot <bart@net.in.tum.de>
Wed, 5 Feb 2014 17:24:28 +0000 (17:24 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 5 Feb 2014 17:24:28 +0000 (17:24 +0000)
src/mesh/gnunet-service-mesh_hello.c

index e98300b0ba205172a6aafd0512611782c3962006..971b26bdf761a407c0066ebdc3b9a687ed2edcf6 100644 (file)
@@ -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",