about summary refs log tree commit diff
path: root/include/sys/prctl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-03-02 00:34:51 -0500
committerRich Felker <dalias@aerifal.cx>2016-03-02 00:34:51 -0500
commit6d70c08a2c37745df637b231711f6dec79dbc6e1 (patch)
treef5f1167d17af57cb5a3252db7d17a8ef1bd51768 /include/sys/prctl.h
parentfd224a800b68843c4d8d1002b07dd91041a7fa32 (diff)
downloadmusl-6d70c08a2c37745df637b231711f6dec79dbc6e1.tar.gz
musl-6d70c08a2c37745df637b231711f6dec79dbc6e1.tar.xz
musl-6d70c08a2c37745df637b231711f6dec79dbc6e1.zip
handle non-matching address family entries in hosts file
name_from_hosts failed to account for the possibility of an address
family error from name_from_numeric, wrongly counting such a return as
success and using the uninitialized address data as part of the
results passed up to the caller.

non-matching address family entries cannot simply be ignored or
results would be inconsistent with respect to whether AF_UNSPEC or a
specific address family is queried. instead, record that a
non-matching entry was seen, and fail the lookup with EAI_NONAME of no
matching-family entries are found.
Diffstat (limited to 'include/sys/prctl.h')
0 files changed, 0 insertions, 0 deletions