diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-01-30 21:31:13 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2026-01-30 21:31:13 +0000 |
| commit | 9df110b11f2dc8802fe6418b96e417f93ba6a753 (patch) | |
| tree | 4477bf4495061c655ff0ff7145b1b157ce0b545e /tests | |
| parent | 56e1cba88bb82f2a6af0212c72182ff6303a1554 (diff) | |
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/sys/netinet/socket_afinet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/sys/netinet/socket_afinet.c b/tests/sys/netinet/socket_afinet.c index 9c718fc5a901..e90fed961b73 100644 --- a/tests/sys/netinet/socket_afinet.c +++ b/tests/sys/netinet/socket_afinet.c @@ -552,6 +552,8 @@ bind_connected_port_test(const atf_tc_t *tc, int domain) ATF_REQUIRE_MSG(error == 0, "getsockname failed: %s", strerror(errno)); if (domain == PF_INET) sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); + else + sin6.sin6_addr = in6addr_loopback; error = connect(sd[1], sinp, sinp->sa_len); ATF_REQUIRE_MSG(error == 0, "connect failed: %s", strerror(errno)); tmp = accept(sd[0], NULL, NULL); |
