From ae8ebff34fd7bb776881b6c99ad70c84d11890e6 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Mon, 21 Jun 2010 11:27:07 +0000 Subject: [PATCH] codesonar changes/fixes --- src/transport/plugin_transport_udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 434fd9ba1..a8be80dee 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -751,7 +751,7 @@ process_interfaces (void *cls, v4 = (struct sockaddr_in *) addr; if ((plugin->behind_nat == GNUNET_YES) && (plugin->only_nat_addresses == GNUNET_YES)) { - v4->sin_port = htons (0); /* Indicates to receiver we are behind NAT */ + v4->sin_port = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE); /* Indicates to receiver we are behind NAT */ } else if (plugin->behind_nat == GNUNET_YES) /* We are behind NAT, but will advertise NAT and normal addresses */ { -- 2.25.1