]> 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, 30 Aug 2022 08:02:49 +0000 (10:02 +0200)
commit32b599ac8c21c4c332cc3900a792a1395bca79c7
treebb8d641a5edb1fdbeee48324d43b91c7877b2fa8
parentd101d836e7e4bd1d4e4972b0e0bd0a55c9b650fa
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>
resolv/nss_dns/dns-host.c