* net.cc (cygwin_gethostbyname): Show failing host name on error.

This commit is contained in:
Christopher Faylor 2004-08-11 18:34:32 +00:00
parent cbd6bc1407
commit cb3f750c79
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-08-11 Christopher Faylor <cgf@timesys.com>
* net.cc (cygwin_gethostbyname): Show failing host name on error.
2004-08-10 Christopher Faylor <cgf@redhat.com>
* select.cc (select_stuff::wait): Correctly check for w4 array bounds.

View File

@ -967,6 +967,7 @@ cygwin_gethostbyname (const char *name)
is_hostent);
if (!_my_tls.locals.hostent_buf)
{
debug_printf ("name %s", name);
set_winsock_errno ();
set_host_errno ();
}