c3267
authorChristian Grothoff <christian@grothoff.org>
Fri, 16 Sep 2011 16:59:12 +0000 (16:59 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 16 Sep 2011 16:59:12 +0000 (16:59 +0000)
src/mesh/mesh_api_new.c

index 4158e9197c235b58d1ec7d1e7bca2e6db64650b8..0fe990eee9d505118738929bca83869ef440bb02 100644 (file)
@@ -907,14 +907,14 @@ msg_received (void *cls, const struct GNUNET_MessageHeader *msg)
 {
   struct GNUNET_MESH_Handle *h = cls;
 
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "mesh: received a message type %hu from MESH\n",
-              ntohs (msg->type));
   if (msg == NULL)
   {
     reconnect (h);
     return;
   }
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "mesh: received a message type %hu from MESH\n",
+              ntohs (msg->type));
   switch (ntohs (msg->type))
   {
     /* Notify of a new incoming tunnel */