Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r--winsup/cygwin/net.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 910eeca36..3a9684932 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -938,7 +938,9 @@ cygwin_gethostbyname (const char *name)
sig_dispatch_pending ();
myfault efault;
if (efault.faulted (EFAULT))
- return NULL;
+{ console_printf ("OUCH!\n");
+ return NULL;
+}
unsigned char tmp_addr[4];
struct hostent tmp, *h;
@@ -969,7 +971,10 @@ cygwin_gethostbyname (const char *name)
hostent *res = (hostent *) dup_ent (hostent_buf, h, t_hostent);
if (res)
- debug_printf ("h_name %s", res);
+{
+ debug_printf ("h_name %s", res->h_name);
+debug_printf ("HERE");
+}
else
{
debug_printf ("dup_ent returned NULL for name %s, h %p", name, h);