From: Eric W. <war...@us...> - 2001-12-20 21:02:02
|
Update of /cvsroot/gaim/gaim/src In directory usw-pr-cvs1:/tmp/cvs-serv27003 Modified Files: proxy.c Log Message: i've been in a friendly mood the last week Index: proxy.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/proxy.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- proxy.c 2001/12/16 21:57:59 1.35 +++ proxy.c 2001/12/20 21:01:59 1.36 @@ -158,6 +158,7 @@ debug_printf("connecting to %s:%d with no proxy\n", host, port); if (!(hp = gethostbyname(host))) { + debug_printf("gethostbyname failed\n"); g_free(phb); return -1; } @@ -168,6 +169,7 @@ sin.sin_port = htons(port); if ((fd = socket(hp->h_addrtype, SOCK_STREAM, 0)) < 0) { + debug_printf("unable to create socket\n"); g_free(phb); return -1; } @@ -189,6 +191,7 @@ debug_printf("Connect didn't block\n"); len = sizeof(error); if (getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &len) < 0) { + debug_printf("getsockopt failed\n"); close(fd); g_free(phb); return -1; |