summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-05-13 12:55:20 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-05-13 12:55:20 +0000
commit36c25583810227d57cdec641b9203592594ba875 (patch)
tree8b3194b1d471e93afb392953160d21060ea41ab2 /src
parentfc0a771cc812c31d3974f45f680b7c6d5cde8e59 (diff)
bound (IPv6) socket to wrong (IPv4) address
Diffstat (limited to 'src')
-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 228c60d33..253425a1a 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -2691,7 +2691,7 @@ setup_sockets (struct Plugin *plugin, struct sockaddr_in6 *serverAddrv6, struct
LOG (GNUNET_ERROR_TYPE_DEBUG, "Binding to IPv6 port %d\n",
ntohs (serverAddrv6->sin6_port));
tries = 0;
- while (GNUNET_NETWORK_socket_bind (plugin->sockv6, serverAddr, addrlen) !=
+ while (GNUNET_NETWORK_socket_bind (plugin->sockv6, serverAddrv6, addrlen) !=
GNUNET_OK)
{
serverAddrv6->sin6_port = htons (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_STRONG, 33537) + 32000); /* Find a good, non-root port */