From: Christian Grothoff Date: Thu, 6 May 2010 12:13:18 +0000 (+0000) Subject: dbg X-Git-Tag: initial-import-from-subversion-38251~21859 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=723b9f11ab20aa6b2fa88840e2f5e52ae72d0b6c;p=oweals%2Fgnunet.git dbg --- diff --git a/src/core/core_api.c b/src/core/core_api.c index 9fd90b127..f8c7c0aa6 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -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;