diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-01 16:01:39 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-11-01 16:01:39 +0000 |
commit | f39b967ceb31232e42b4d98e97ce90e63a1f0946 (patch) | |
tree | 35fe0523dcdda32b2255934d4e4c2bb909b220f3 /src/testing | |
parent | 59da714e85743fcc71aa060dd03ab16273d34b28 (diff) | |
download | gnunet-f39b967ceb31232e42b4d98e97ce90e63a1f0946.tar.gz gnunet-f39b967ceb31232e42b4d98e97ce90e63a1f0946.zip |
fix
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c index 049074cd5..cfb3e89f7 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -411,6 +411,7 @@ GNUNET_TESTING_reserve_port (struct GNUNET_TESTING_System *system, | |||
411 | ret = NULL; | 411 | ret = NULL; |
412 | GNUNET_assert (0 == getaddrinfo (NULL, open_port_str, &hint, &ret)); | 412 | GNUNET_assert (0 == getaddrinfo (NULL, open_port_str, &hint, &ret)); |
413 | GNUNET_free (open_port_str); | 413 | GNUNET_free (open_port_str); |
414 | bind_status = GNUNET_NO; | ||
414 | for (ai = ret; NULL != ai; ai = ai->ai_next) | 415 | for (ai = ret; NULL != ai; ai = ai->ai_next) |
415 | { | 416 | { |
416 | socket = GNUNET_NETWORK_socket_create (ai->ai_family, | 417 | socket = GNUNET_NETWORK_socket_create (ai->ai_family, |
@@ -418,10 +419,7 @@ GNUNET_TESTING_reserve_port (struct GNUNET_TESTING_System *system, | |||
418 | SOCK_STREAM : SOCK_DGRAM, | 419 | SOCK_STREAM : SOCK_DGRAM, |
419 | 0); | 420 | 0); |
420 | if (NULL == socket) | 421 | if (NULL == socket) |
421 | { | ||
422 | bind_status = GNUNET_NO; | ||
423 | continue; | 422 | continue; |
424 | } | ||
425 | bind_status = GNUNET_NETWORK_socket_bind (socket, | 423 | bind_status = GNUNET_NETWORK_socket_bind (socket, |
426 | ai->ai_addr, | 424 | ai->ai_addr, |
427 | ai->ai_addrlen); | 425 | ai->ai_addrlen); |