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 | |
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')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 8 | ||||
-rw-r--r-- | src/transport/transport_api_address_to_string.c | 3 |
2 files changed, 8 insertions, 3 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; |
diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c index 4d809530a..73ea09f85 100644 --- a/src/transport/transport_api_address_to_string.c +++ b/src/transport/transport_api_address_to_string.c | |||
@@ -145,9 +145,6 @@ GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle | |||
145 | client = GNUNET_CLIENT_connect ("transport", cfg); | 145 | client = GNUNET_CLIENT_connect ("transport", cfg); |
146 | if (client == NULL) | 146 | if (client == NULL) |
147 | return NULL; | 147 | return NULL; |
148 | #if DEBUG_TRANSPORT | ||
149 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "GNUNET_TRANSPORT_address_to_string\n"); | ||
150 | #endif | ||
151 | msg = GNUNET_malloc (len); | 148 | msg = GNUNET_malloc (len); |
152 | msg->header.size = htons (len); | 149 | msg->header.size = htons (len); |
153 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING); | 150 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING); |