dns: fix workaround for systems defaulting to ipv6-only sockets
authorAlexey Izbyshev <izbyshev@ispras.ru>
Fri, 24 Feb 2023 22:07:33 +0000 (01:07 +0300)
committerRich Felker <dalias@aerifal.cx>
Mon, 27 Feb 2023 15:03:56 +0000 (10:03 -0500)
commitd0b7f9768df133428b6587a5273551c56c46d6a6
treedf653ccc3e63dec0ec704bb658880b7362bf72aa
parentbec42ef393c0ad64e699a901ab0746d16bfde251
dns: fix workaround for systems defaulting to ipv6-only sockets

When IPv6 nameservers are present, __res_msend_rc attempts to disable
IPV6_V6ONLY socket option to ensure that it can communicate with IPv4
nameservers (if they are present too) via IPv4-mapped IPv6 addresses.
However, this option can't be disabled on bound sockets, so setsockopt
always fails.
src/network/res_msend.c