about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-01-21 09:26:41 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-01-21 09:26:41 +0100
commit6ca53a2453598804a2559a548a08424fca96434a (patch)
treeaba412e2b8e57adede251922d098e7f62f388fdb /ChangeLog
parent5e30b8ef0758763effa115634e0ed7d8938e4bc0 (diff)
downloadglibc-6ca53a2453598804a2559a548a08424fca96434a.tar.gz
glibc-6ca53a2453598804a2559a548a08424fca96434a.tar.xz
glibc-6ca53a2453598804a2559a548a08424fca96434a.zip
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9aa70d4b0b..d2d6185913 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2019-01-18  Florian Weimer  <fweimer@redhat.com>
+
+	[BZ #24112]
+	resolv: Do not send queries for non-host-names in nss_dns.
+	* resolv/nss_dns/dns-host.c (check_name): New function.
+	(_nss_dns_gethostbyname2_r): Use it.
+	(_nss_dns_gethostbyname_r): Likewise.
+	(_nss_dns_gethostbyname4_r): Likewise.
+
 2019-01-21  Florian Weimer  <fweimer@redhat.com>
 
 	* resolv/inet_addr.c: Reformat to GNU style.