gethostbyname/gethostbyaddr patch

Corinna Vinschen
Thu Aug 23 23:58:00 GMT 2001

On Thu, Aug 23, 2001 at 04:17:36PM -0400, Jason Tishler wrote:
> The following patch:
> broke gethostbyname() and gethostbyaddr() when the IP address contains
> zero components.  For example, my mail server is  When I
> connect to it with a Cygwin app, the address actually used is
> 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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

More information about the Cygwin-patches mailing list