diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-30 15:59:40 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-30 15:59:40 +0000 |
commit | 5369e360e3d33c2f4c70480f47c178d8ea96948e (patch) | |
tree | 0329320851a5655e4b22f936e62942fa6d231309 /src/transport/plugin_transport_tcp.c | |
parent | 2286a3b44da4b552db29dadf5873c294952fdd06 (diff) | |
download | gnunet-5369e360e3d33c2f4c70480f47c178d8ea96948e.tar.gz gnunet-5369e360e3d33c2f4c70480f47c178d8ea96948e.zip |
- remove err msg
- added error msg for mantis 2214
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; |