diff options
author | Rich Felker <dalias@aerifal.cx> | 2022-08-24 20:48:47 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2022-08-24 20:48:47 -0400 |
commit | d8fddb964108e57e670d20c36e6da84796617d78 (patch) | |
tree | 0e997b8da1bd6ab250d9b1cf760cbba44b111f51 /src/stdio/__stdout_write.c | |
parent | epoll_create: fail with EINVAL if size is non-positive (diff) | |
download | grovel-d8fddb964108e57e670d20c36e6da84796617d78.tar.gz grovel-d8fddb964108e57e670d20c36e6da84796617d78.tar.xz |
fix fallback when ipv6 is disabled but resolv.conf has v6 nameserves
apparently this code path was never tested, as it's not usual to have
v6 nameservers listed on a system without v6 networking support. but
it was always intended to work.
when reverting to binding a v4 address, also revert the family in the
sockaddr structure and the socklen for it. otherwise bind will just
fail due to mismatched family/sockaddr size.
fix dns resolver fallback when v6 nameservers are listed by
Diffstat (limited to 'src/stdio/__stdout_write.c')
0 files changed, 0 insertions, 0 deletions