aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-04-03 08:39:27 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-04-03 08:39:27 +0000
commit65bf40c5c1ded08d9f116db7ceca82cfdcfee63c (patch)
tree0aff445814dcae1be8386a72867e4e5063343f8c /src/transport/plugin_transport_tcp.c
parentac43047941ad44cb3cd408b557a9abdb73d34f06 (diff)
downloadgnunet-65bf40c5c1ded08d9f116db7ceca82cfdcfee63c.tar.gz
gnunet-65bf40c5c1ded08d9f116db7ceca82cfdcfee63c.zip
- additional debug message for mantis 2214
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c8
1 files changed, 8 insertions, 0 deletions
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,
1850 if (NULL == session) 1850 if (NULL == session)
1851 { 1851 {
1852 /* No inbound session found */ 1852 /* No inbound session found */
1853 void *vaddr;
1854 size_t alen;
1855 GNUNET_SERVER_client_get_address (client, &vaddr, &alen);
1856 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "tcp",
1857 "Received unexpected %u bytes of type %u from `%s'\n",
1858 (unsigned int) ntohs (message->size),
1859 (unsigned int) ntohs (message->type),
1860 GNUNET_a2s(vaddr, alen));
1853 GNUNET_break_op (0); 1861 GNUNET_break_op (0);
1854 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 1862 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
1855 return; 1863 return;