]> git.ipfire.org Git - thirdparty/glibc.git/commit
nss_dns: Rewrite _nss_dns_gethostbyname4_r using current interfaces
authorFlorian Weimer <fweimer@redhat.com>
Tue, 20 Sep 2022 10:38:22 +0000 (12:38 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 20 Sep 2022 11:05:58 +0000 (13:05 +0200)
commit649213ae27e40fb63a8206ab912c44581363c146
tree31dd4acf0b7b9a44f63cc7c57d2c742bf7811318
parent4a214c74489aa140d0ba9c2c3e96942b1934f63f
nss_dns: Rewrite _nss_dns_gethostbyname4_r using current interfaces

Introduce struct alloc_buffer to this function, and use it and
struct ns_rr_cursor in gaih_getanswer_slice.  Adjust gaih_getanswer
and gaih_getanswer_noaaaa accordingly.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 1d495912a746e2a1ffb780c9a81fd234ec2464e8)
(conflict in resolv/nss_dns/dns-host.c due to missing noaaaa support)
resolv/nss_dns/dns-host.c