dbg
authorChristian Grothoff <christian@grothoff.org>
Thu, 6 May 2010 12:13:18 +0000 (12:13 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 6 May 2010 12:13:18 +0000 (12:13 +0000)
src/core/core_api.c

index 9fd90b1274aab9a0f0208b00ebb9b7c51aef7ab1..f8c7c0aa6ef79a231e1d5454bb897117db764cc8 100644 (file)
@@ -549,9 +549,10 @@ init_reply_handler (void *cls, const struct GNUNET_MessageHeader *msg)
     {
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                   _
-                  ("Error connecting to core service (failed to receive `%s' message, got message of type %u).\n"),
+                  ("Error connecting to core service (failed to receive `%s' message, got message of type %u and size %u).\n"),
                   "INIT_REPLY",
-                 ntohs (msg->type));
+                 (msg == NULL) ? -1 : ntohs (msg->type),
+                 (msg == NULL) ? -1 : ntohs (msg->size));
       GNUNET_break (msg == NULL);
       transmit_start (h, 0, NULL);
       return;