aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-21 21:06:48 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-21 21:06:48 +0000
commit46cfd0e998c3946f75b7dd7376fc7587a6f4b562 (patch)
treea45c98420c67e06a99dd83c22b62e2bc8a48f3c7 /src/transport/plugin_transport_udp.c
parent79437ecb24ce042d8c7e92d80da2276536bb2b86 (diff)
downloadgnunet-46cfd0e998c3946f75b7dd7376fc7587a6f4b562.tar.gz
gnunet-46cfd0e998c3946f75b7dd7376fc7587a6f4b562.zip
nate on code sonar crack
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index a8be80dee..434fd9ba1 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -751,7 +751,7 @@ process_interfaces (void *cls,
751 v4 = (struct sockaddr_in *) addr; 751 v4 = (struct sockaddr_in *) addr;
752 if ((plugin->behind_nat == GNUNET_YES) && (plugin->only_nat_addresses == GNUNET_YES)) 752 if ((plugin->behind_nat == GNUNET_YES) && (plugin->only_nat_addresses == GNUNET_YES))
753 { 753 {
754 v4->sin_port = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE); /* Indicates to receiver we are behind NAT */ 754 v4->sin_port = htons (0); /* Indicates to receiver we are behind NAT */
755 } 755 }
756 else if (plugin->behind_nat == GNUNET_YES) /* We are behind NAT, but will advertise NAT and normal addresses */ 756 else if (plugin->behind_nat == GNUNET_YES) /* We are behind NAT, but will advertise NAT and normal addresses */
757 { 757 {