diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-08-29 20:00:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-08-29 20:00:36 +0000 |
commit | 70486ed8cb9e5d7c64842a4721c8d106c01dccd6 (patch) | |
tree | 32b1b2fa1af701c6fbd2cf0235bd404b73b01edc /src/util/test_connection_timeout.c | |
parent | 02e058ca700d62fb41d14cef5040cc613e74408a (diff) | |
download | gnunet-70486ed8cb9e5d7c64842a4721c8d106c01dccd6.tar.gz gnunet-70486ed8cb9e5d7c64842a4721c8d106c01dccd6.zip |
fix check for close
Diffstat (limited to 'src/util/test_connection_timeout.c')
-rw-r--r-- | src/util/test_connection_timeout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/test_connection_timeout.c b/src/util/test_connection_timeout.c index 61d9a2d07..289bb102a 100644 --- a/src/util/test_connection_timeout.c +++ b/src/util/test_connection_timeout.c | |||
@@ -57,7 +57,9 @@ open_listen_socket () | |||
57 | if (GNUNET_NETWORK_socket_setsockopt (desc, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)) < 0) | 57 | if (GNUNET_NETWORK_socket_setsockopt (desc, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)) < 0) |
58 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, | 58 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, |
59 | "setsockopt"); | 59 | "setsockopt"); |
60 | GNUNET_assert (GNUNET_NETWORK_socket_bind (desc, &sa, sizeof (sa)) >= 0); | 60 | GNUNET_assert (GNUNET_NETWORK_socket_bind (desc, |
61 | (const struct sockaddr*) &sa, | ||
62 | sizeof (sa)) >= 0); | ||
61 | GNUNET_NETWORK_socket_listen (desc, 5); | 63 | GNUNET_NETWORK_socket_listen (desc, 5); |
62 | return desc; | 64 | return desc; |
63 | } | 65 | } |