This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: gethostbyname2_r buggy?
- To: kravietz@ceti.pl (Pawel Krawczyk)
- Subject: Re: gethostbyname2_r buggy?
- From: hjl@lucon.org (H.J. Lu)
- Date: Sun, 5 Sep 1999 08:54:20 -0700 (PDT)
- Cc: libc-alpha@sourceware.cygnus.com
>
>
> --8t9RHnE3ZwKMSgU+
> Content-Type: text/plain; charset=us-ascii
>
> Recently I've been tracking the reason why nscd has failed on some
> type of hosts and discovered that it was caused by failure of
> gethostbyname2_r() (called from addhstbyname() in nscd/hstcache.c).
> This function fails returning -1 when resolved host is a recursive
> CNAME, e.g:
>
Which glibc are you using? I believe I fixed it recently. In my case,
it is
# nslookup www.peopledaily.com.cn
.....
Non-authoritative answer:
Name: web2.peopledaily.com.cn
Address: 202.99.23.122
Aliases: www.peopledaily.com.cn, ww.best.peopledaily.com.cn
The patch is
1999-08-10 H.J. Lu <hjl@gnu.org>
* resolv/nss_dns/dns-host.c (getanswer_r): Cleanup out-of-
buffer handling.
H.J.