- additional debug message for mantis 2214
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 3 Apr 2012 08:39:27 +0000 (08:39 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 3 Apr 2012 08:39:27 +0000 (08:39 +0000)
src/transport/plugin_transport_tcp.c

index 2fa96b464949d4e2cc0796d6e81ec6d77940bcb4..2753ba2192c73a8ab5109cbe0e2dbe163d50a5ff 100644 (file)
@@ -1850,6 +1850,14 @@ handle_tcp_data (void *cls, struct GNUNET_SERVER_Client *client,
   if (NULL == session)
   {
     /* No inbound session found */
+    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;