summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-12-23 15:03:26 +0100
committerAndreas Schneider <asn@samba.org>2013-12-23 15:03:26 +0100
commit1544ad632c71e2fe9d355baf639f2a9a0d479b0d (patch)
treee4a490624173b2675e0df3def75ebe942badb041 /tests
parent3c4759afc44b73484e99b130e931b2779b1f956c (diff)
downloadsocket_wrapper-1544ad632c71e2fe9d355baf639f2a9a0d479b0d.tar.gz
socket_wrapper-1544ad632c71e2fe9d355baf639f2a9a0d479b0d.tar.xz
socket_wrapper-1544ad632c71e2fe9d355baf639f2a9a0d479b0d.zip
tests: Fix getsockopt() on Solaris.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_echo_tcp_socket_options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_echo_tcp_socket_options.c b/tests/test_echo_tcp_socket_options.c
index 798d612..c5c3a3f 100644
--- a/tests/test_echo_tcp_socket_options.c
+++ b/tests/test_echo_tcp_socket_options.c
@@ -42,9 +42,9 @@ static void test_sockopt_sndbuf(void **state)
struct sockaddr_in sin;
socklen_t slen = sizeof(struct sockaddr_in);
int obufsize = 0;
- socklen_t olen = 0;
+ socklen_t olen = sizeof(obufsize);
int gbufsize = 0;
- socklen_t glen = 0;
+ socklen_t glen = sizeof(gbufsize);
int sbufsize = 0;
int rc;
int s;