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_receive_cancel.c | |
parent | 02e058ca700d62fb41d14cef5040cc613e74408a (diff) | |
download | gnunet-70486ed8cb9e5d7c64842a4721c8d106c01dccd6.tar.gz gnunet-70486ed8cb9e5d7c64842a4721c8d106c01dccd6.zip |
fix check for close
Diffstat (limited to 'src/util/test_connection_receive_cancel.c')
-rw-r--r-- | src/util/test_connection_receive_cancel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/test_connection_receive_cancel.c b/src/util/test_connection_receive_cancel.c index 338caa737..eb9d906ff 100644 --- a/src/util/test_connection_receive_cancel.c +++ b/src/util/test_connection_receive_cancel.c | |||
@@ -64,7 +64,9 @@ open_listen_socket () | |||
64 | if (GNUNET_NETWORK_socket_setsockopt (desc, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)) < 0) | 64 | if (GNUNET_NETWORK_socket_setsockopt (desc, SOL_SOCKET, SO_REUSEADDR, &on, sizeof (on)) < 0) |
65 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, | 65 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR | GNUNET_ERROR_TYPE_BULK, |
66 | "setsockopt"); | 66 | "setsockopt"); |
67 | GNUNET_assert (GNUNET_NETWORK_socket_bind (desc, &sa, sizeof (sa)) >= 0); | 67 | GNUNET_assert (GNUNET_NETWORK_socket_bind (desc, |
68 | (const struct sockaddr*) &sa, | ||
69 | sizeof (sa)) >= 0); | ||
68 | GNUNET_NETWORK_socket_listen (desc, 5); | 70 | GNUNET_NETWORK_socket_listen (desc, 5); |
69 | return desc; | 71 | return desc; |
70 | } | 72 | } |