]> 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, 13 Sep 2022 10:56:24 +0000 (12:56 +0200)
commit7a236dc44a22dc4252e803d1ee1d3b970ec43805
treec772fdf9a70bf781d3d966d8e486ba3d89eb6571
parent78c8ef21fa54e994451d5b42ead6080d99a88a49
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