From: Christian Grothoff Date: Thu, 4 Mar 2010 08:21:07 +0000 (+0000) Subject: dce X-Git-Tag: initial-import-from-subversion-38251~22585 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9e716945a6fd0946464ef61b159bb44ccdd9c403;p=oweals%2Fgnunet.git dce --- diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 2ec80f9e9..80829c244 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c @@ -985,12 +985,9 @@ handle_tcp_data (void *cls, { struct Plugin *plugin = cls; struct Session *session; - uint16_t msize; struct GNUNET_TIME_Relative delay; - msize = ntohs (message->size); session = find_session_by_client (plugin, client); - if (GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME == ntohs(message->type)) { /* We don't want to propagate WELCOME messages up! */ @@ -1007,7 +1004,7 @@ handle_tcp_data (void *cls, GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "tcp", "Passing %u bytes of type %u from `%4s' to transport service.\n", - (unsigned int) msize, + (unsigned int) ntohs (message->size), (unsigned int) ntohs (message->type), GNUNET_i2s (&session->target)); #endif