diff options
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index e5d3014bc..1850c3fda 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1846,6 +1846,14 @@ handle_tcp_data (void *cls, struct GNUNET_SERVER_Client *client, | |||
1846 | else if (GNUNET_YES == session->expecting_welcome) | 1846 | else if (GNUNET_YES == session->expecting_welcome) |
1847 | { | 1847 | { |
1848 | /* Session is expecting WELCOME message */ | 1848 | /* Session is expecting WELCOME message */ |
1849 | void *vaddr; | ||
1850 | size_t alen; | ||
1851 | GNUNET_SERVER_client_get_address (client, &vaddr, &alen); | ||
1852 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "tcp", | ||
1853 | "Received unexpected %u bytes of type %u from `%s'\n", | ||
1854 | (unsigned int) ntohs (message->size), | ||
1855 | (unsigned int) ntohs (message->type), | ||
1856 | GNUNET_a2s(vaddr, alen)); | ||
1849 | GNUNET_break_op (0); | 1857 | GNUNET_break_op (0); |
1850 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 1858 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
1851 | return; | 1859 | return; |