diff options
author | Rich Felker <dalias@aerifal.cx> | 2022-10-19 13:33:03 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2022-10-19 14:01:45 -0400 |
commit | 0a7b4323b0f2b944dbd47a813c0c6e6813e7fd67 (patch) | |
tree | 8e693db5dda5f75838c98a1abb9db27a09b7d335 /src/network/gai_strerror.c | |
parent | 41603c7706f8a4c1b1a2a23e49ff7490f6860dc2 (diff) | |
download | musl-0a7b4323b0f2b944dbd47a813c0c6e6813e7fd67.tar.gz musl-0a7b4323b0f2b944dbd47a813c0c6e6813e7fd67.tar.bz2 musl-0a7b4323b0f2b944dbd47a813c0c6e6813e7fd67.tar.xz musl-0a7b4323b0f2b944dbd47a813c0c6e6813e7fd67.zip |
dns response handling: don't treat too many addresses as an error
returning -1 rather than 0 from the parse function causes __dns_parse
to bail out and return an error. presently, name_from_dns does not
check the return value anyway, so this does not matter, but if it ever
started treating this as an error, lookups with large numbers of
addresses would break. this is a consequence of adding TCP support and
extending the buffer size used in name_from_dns.
Diffstat (limited to 'src/network/gai_strerror.c')
0 files changed, 0 insertions, 0 deletions