diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-13 12:55:20 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-05-13 12:55:20 +0000 |
commit | 36c25583810227d57cdec641b9203592594ba875 (patch) | |
tree | 8b3194b1d471e93afb392953160d21060ea41ab2 | |
parent | fc0a771cc812c31d3974f45f680b7c6d5cde8e59 (diff) | |
download | gnunet-36c25583810227d57cdec641b9203592594ba875.tar.gz gnunet-36c25583810227d57cdec641b9203592594ba875.zip |
bound (IPv6) socket to wrong (IPv4) address
-rw-r--r-- | src/transport/plugin_transport_udp.c | 2 |
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 | |||
2691 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Binding to IPv6 port %d\n", | 2691 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Binding to IPv6 port %d\n", |
2692 | ntohs (serverAddrv6->sin6_port)); | 2692 | ntohs (serverAddrv6->sin6_port)); |
2693 | tries = 0; | 2693 | tries = 0; |
2694 | while (GNUNET_NETWORK_socket_bind (plugin->sockv6, serverAddr, addrlen) != | 2694 | while (GNUNET_NETWORK_socket_bind (plugin->sockv6, serverAddrv6, addrlen) != |
2695 | GNUNET_OK) | 2695 | GNUNET_OK) |
2696 | { | 2696 | { |
2697 | serverAddrv6->sin6_port = htons (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_STRONG, 33537) + 32000); /* Find a good, non-root port */ | 2697 | serverAddrv6->sin6_port = htons (GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_STRONG, 33537) + 32000); /* Find a good, non-root port */ |