- remove err msg
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 30 Mar 2012 15:59:40 +0000 (15:59 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 30 Mar 2012 15:59:40 +0000 (15:59 +0000)
- added error msg for mantis 2214

src/transport/plugin_transport_tcp.c
src/transport/transport_api_address_to_string.c

index e5d3014bc5c0e84b4ba57fd7cbcf9d02313cef30..1850c3fdac458afe51ef6ed9d33b036ddb1a50fb 100644 (file)
@@ -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;
index 4d809530a7a7b278ad5df821457e66e3f881ba77..73ea09f854508189f685ef9f4c4c696fe16dd72b 100644 (file)
@@ -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);