From: Nathan S. Evans Date: Tue, 21 Dec 2010 12:52:44 +0000 (+0000) Subject: don't know how this could have worked before X-Git-Tag: initial-import-from-subversion-38251~19495 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5ef7306d3d74c3e076407880ea28fa46fff98b4f;p=oweals%2Fgnunet.git don't know how this could have worked before --- diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 6e2d236ab..1ffc8b260 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c @@ -2369,7 +2369,6 @@ tcp_plugin_server_read (void *cls, /* construct socket address of sender */ memset (&sin_addr, 0, sizeof (sin_addr)); sin_addr.sin_family = AF_INET; - sin_addr.sin_port = htons((uint16_t) port); #if HAVE_SOCKADDR_IN_SIN_LEN sin_addr.sin_len = sizeof (sin_addr); #endif @@ -2389,7 +2388,7 @@ tcp_plugin_server_read (void *cls, plugin); return; } - + sin_addr.sin_port = htons((uint16_t) port); #if DEBUG_TCP_NAT GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "tcp",