]> git.ipfire.org Git - thirdparty/glibc.git/commit
resolv: Do not send queries for non-host-names in nss_dns [BZ #24112]
authorFlorian Weimer <fweimer@redhat.com>
Mon, 21 Jan 2019 08:26:41 +0000 (09:26 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 4 Feb 2019 20:35:01 +0000 (21:35 +0100)
commit37edf1d3f8ab9adefb61cc466ac52b53114fbd5b
tree3df816e02e3105c63cd02800d6fbf2a334f27878
parent8e92ca5dd7a7e38a4dddf1ebc4e1e8f0cb27e4aa
resolv: Do not send queries for non-host-names in nss_dns [BZ #24112]

Before this commit, nss_dns would send a query which did not contain a
host name as the query name (such as invalid\032name.example.com) and
then reject the answer in getanswer_r and gaih_getanswer_slice, using
a check based on res_hnok.  With this commit, no query is sent, and a
host-not-found error is returned to NSS without network interaction.

(cherry picked from commit 6ca53a2453598804a2559a548a08424fca96434a)
ChangeLog
resolv/nss_dns/dns-host.c