1
0
mirror of https://git.FreeBSD.org/src.git synced 2026-06-02 11:24:32 +00:00

tests/netinet: fix tests that depended on connect(in6addr_any)

Fixes:	627e126dbb
This commit is contained in:
Gleb Smirnoff
2026-01-30 13:31:13 -08:00
parent 56e1cba88b
commit 9df110b11f
+2
View File
@@ -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);