summaryrefslogtreecommitdiff
path: root/src/testing/testing_new.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_new.c')
-rw-r--r--src/testing/testing_new.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing_new.c b/src/testing/testing_new.c
index 4622ae874..7a97b3b9c 100644
--- a/src/testing/testing_new.c
+++ b/src/testing/testing_new.c
@@ -210,11 +210,11 @@ reserve_port (struct GNUNET_TESTING_System *system,
210 struct addrinfo *ret; 210 struct addrinfo *ret;
211 uint32_t *port_buckets; 211 uint32_t *port_buckets;
212 char *open_port_str; 212 char *open_port_str;
213 int pos;
214 int bind_status; 213 int bind_status;
215 uint32_t xor_image; 214 uint32_t xor_image;
216 uint16_t index; 215 uint16_t index;
217 uint16_t open_port; 216 uint16_t open_port;
217 uint16_t pos;
218 218
219 hint.ai_family = AF_UNSPEC; /* IPv4 and IPv6 */ 219 hint.ai_family = AF_UNSPEC; /* IPv4 and IPv6 */
220 hint.ai_socktype = (GNUNET_YES == is_tcp)? SOCK_STREAM : SOCK_DGRAM; 220 hint.ai_socktype = (GNUNET_YES == is_tcp)? SOCK_STREAM : SOCK_DGRAM;
@@ -244,7 +244,7 @@ reserve_port (struct GNUNET_TESTING_System *system,
244 ret = NULL; 244 ret = NULL;
245 GNUNET_assert (0 == getaddrinfo (NULL, open_port_str, &hint, &ret)); 245 GNUNET_assert (0 == getaddrinfo (NULL, open_port_str, &hint, &ret));
246 GNUNET_free (open_port_str); 246 GNUNET_free (open_port_str);
247 socket = GNUNET_NETWORK_socket_create (AF_UNSPEC, 247 socket = GNUNET_NETWORK_socket_create (ret->ai_family,
248 (GNUNET_YES == is_tcp) ? 248 (GNUNET_YES == is_tcp) ?
249 SOCK_STREAM : SOCK_DGRAM, 249 SOCK_STREAM : SOCK_DGRAM,
250 0); 250 0);