From 5369e360e3d33c2f4c70480f47c178d8ea96948e Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 30 Mar 2012 15:59:40 +0000 Subject: - remove err msg - added error msg for mantis 2214 --- src/transport/plugin_transport_tcp.c | 8 ++++++++ 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, else if (GNUNET_YES == session->expecting_welcome) { /* Session is expecting WELCOME message */ + 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; 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 client = GNUNET_CLIENT_connect ("transport", cfg); if (client == NULL) return NULL; -#if DEBUG_TRANSPORT - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "GNUNET_TRANSPORT_address_to_string\n"); -#endif msg = GNUNET_malloc (len); msg->header.size = htons (len); msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING); -- cgit v1.2.3