From 65bf40c5c1ded08d9f116db7ceca82cfdcfee63c Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 3 Apr 2012 08:39:27 +0000 Subject: [PATCH] - additional debug message for mantis 2214 --- src/transport/plugin_transport_tcp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 2fa96b464..2753ba219 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c @@ -1850,6 +1850,14 @@ handle_tcp_data (void *cls, struct GNUNET_SERVER_Client *client, if (NULL == session) { /* No inbound session found */ + void *vaddr; + size_t alen; + GNUNET_SERVER_client_get_address (client, &vaddr, &alen); + GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "tcp", + "Received unexpected %u bytes of type %u from `%s'\n", + (unsigned int) ntohs (message->size), + (unsigned int) ntohs (message->type), + GNUNET_a2s(vaddr, alen)); GNUNET_break_op (0); GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); return; -- 2.25.1