Mercurial > pidgin
diff src/proxy.c @ 3283:f4f4232f4e83
[gaim-migrate @ 3301]
Sean Davis has a cool first name--and he decided gethostbyname should
report its errors.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 31 May 2002 02:00:41 +0000 |
parents | 778e4e27c33e |
children | 8d0fa912ecaf |
line wrap: on
line diff
--- a/src/proxy.c Thu May 30 18:33:40 2002 +0000 +++ b/src/proxy.c Fri May 31 02:00:41 2002 +0000 @@ -126,6 +126,8 @@ if (!inet_aton(host, &sin.sin_addr)) { struct hostent *hp; if (!(hp = gethostbyname(host))) { + debug_printf("gaim_gethostbyname(\"%s\", %d) failed: %s", + host, port, hstrerror(h_errno)); return NULL; } memset(&sin, 0, sizeof(struct sockaddr_in));