diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-06-03 01:46:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-06-03 01:46:40 -0400 |
commit | d85d261ee601f7ccf0bb19c38c69e406a664fe8e (patch) | |
tree | 84050e89d696caeb81cca49c11a00e8590b8d3c6 /src/network/socket.c | |
parent | ac2a7893427b6c94f05609d214178f8d5a18b333 (diff) | |
download | musl-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/socket.c')
0 files changed, 0 insertions, 0 deletions