From: Matthias Wachs Date: Tue, 3 Apr 2012 08:39:27 +0000 (+0000) Subject: - additional debug message for mantis 2214 X-Git-Tag: initial-import-from-subversion-38251~14017 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=65bf40c5c1ded08d9f116db7ceca82cfdcfee63c;p=oweals%2Fgnunet.git - additional debug message for mantis 2214 --- 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;