From 723b9f11ab20aa6b2fa88840e2f5e52ae72d0b6c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 6 May 2010 12:13:18 +0000 Subject: [PATCH] dbg --- src/core/core_api.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.25.1