]> git.ipfire.org Git - thirdparty/glibc.git/commit
nss_dns: In gaih_getanswer_slice, skip strange aliases (bug 12154)
authorFlorian Weimer <fweimer@redhat.com>
Tue, 30 Aug 2022 08:02:49 +0000 (10:02 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 20 Sep 2022 11:05:58 +0000 (13:05 +0200)
commit519e1b025113c338852933d71acfc9d163658cfe
tree0f5aba449715c1397e8ad232ad818fb268f518c2
parentee74c14325a1d6577dd55cc314832d684ddecf68
nss_dns: In gaih_getanswer_slice, skip strange aliases (bug 12154)

If the name is not a host name, skip adding it to the result, instead
of reporting query failure.  This fixes bug 12154 for getaddrinfo.

This commit still keeps the old parsing code, and only adjusts when
a host name is copied.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 32b599ac8c21c4c332cc3900a792a1395bca79c7)
resolv/nss_dns/dns-host.c