summaryrefslogtreecommitdiffstats
path: root/tests/test_echo_tcp_bind.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-09-02 12:17:15 +0200
committerAndreas Schneider <asn@samba.org>2014-09-02 13:32:18 +0200
commitd3c101f14b17cd2750a289dda5c2fec82f9b9861 (patch)
tree623d200d6af33cc0594e8050aafed31cf91cf163 /tests/test_echo_tcp_bind.c
parenta33de3254837fc3c78c5c445f9c2e19b2b4d4f94 (diff)
downloadsocket_wrapper-d3c101f14b17cd2750a289dda5c2fec82f9b9861.tar.gz
socket_wrapper-d3c101f14b17cd2750a289dda5c2fec82f9b9861.tar.xz
socket_wrapper-d3c101f14b17cd2750a289dda5c2fec82f9b9861.zip
tests: Pass the sockaddr structure to system functions.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'tests/test_echo_tcp_bind.c')
-rw-r--r--tests/test_echo_tcp_bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_echo_tcp_bind.c b/tests/test_echo_tcp_bind.c
index 705fd8d..b95724d 100644
--- a/tests/test_echo_tcp_bind.c
+++ b/tests/test_echo_tcp_bind.c
@@ -411,7 +411,7 @@ static void test_bind_on_ipv6_sock(void **state)
assert_return_code(s, errno);
addr_un.sa.un.sun_family = AF_UNIX;
- rc = bind(s, &addr_un.sa.un, addr_un.sa_socklen);
+ rc = bind(s, &addr_un.sa.s, addr_un.sa_socklen);
assert_int_equal(rc, -1);
/* FreeBSD uses EINVAL here... */
assert_true(errno == EAFNOSUPPORT || errno == EINVAL);