This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: gethostbyname/gethostbyaddr patch
- To: Cygwin-Patches <cygwin-patches at sources dot redhat dot com>
- Subject: Re: gethostbyname/gethostbyaddr patch
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- Date: Fri, 24 Aug 2001 08:58:23 +0200
- References: <20010823161736.A1556@dothill.com>
On Thu, Aug 23, 2001 at 04:17:36PM -0400, Jason Tishler wrote:
> The following patch:
>
> http://www.cygwin.com/ml/cygwin-cvs/2001-q3/msg00100.html
>
> broke gethostbyname() and gethostbyaddr() when the IP address contains
> zero components. For example, my mail server is 24.0.95.227. When I
> connect to it with a Cygwin app, the address actually used is 24.0.0.0.
>
> The root cause is that dup_char_list() does not handle embedded null
> characters. The attached patch is one way to correct this problem.
>
> Jason
Thanks, applied.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.