about summary refs log tree commit diff
path: root/src/network/proto.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-06-03 01:46:40 -0400
committerRich Felker <dalias@aerifal.cx>2014-06-03 01:46:40 -0400
commitd85d261ee601f7ccf0bb19c38c69e406a664fe8e (patch)
tree84050e89d696caeb81cca49c11a00e8590b8d3c6 /src/network/proto.c
parentac2a7893427b6c94f05609d214178f8d5a18b333 (diff)
downloadmusl-d85d261ee601f7ccf0bb19c38c69e406a664fe8e.tar.gz
musl-d85d261ee601f7ccf0bb19c38c69e406a664fe8e.tar.xz
musl-d85d261ee601f7ccf0bb19c38c69e406a664fe8e.zip
fix negative response and non-response handling for dns queries
previously, all failures to obtain at least one address were treated
as nonexistant names (EAI_NONAME). this failed to account for the
possibility of transient failures (no response at all, or a response
with rcode of 2, server failure) or permanent failures that do not
indicate the nonexistence of the requested name. only an rcode of 3
should be treated as an indication of nonexistence.
Diffstat (limited to 'src/network/proto.c')
0 files changed, 0 insertions, 0 deletions