projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b79a1b5
)
dbg
author
Christian Grothoff
<christian@grothoff.org>
Thu, 6 May 2010 12:13:18 +0000
(12:13 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 6 May 2010 12:13:18 +0000
(12:13 +0000)
src/core/core_api.c
patch
|
blob
|
history
diff --git
a/src/core/core_api.c
b/src/core/core_api.c
index 9fd90b1274aab9a0f0208b00ebb9b7c51aef7ab1..f8c7c0aa6ef79a231e1d5454bb897117db764cc8 100644
(file)
--- 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;