# HG changeset patch # User Ethan Blanton # Date 1085705265 0 # Node ID 4b3e5a5063f966cb2ee2eedc678d92bbad80302d # Parent 8da67bfea81375aa7f2919591b2ae75e32a50141 [gaim-migrate @ 9877] For some reason Stu thinks that 'Error: Success' is undesirable. committer: Tailor Script diff -r 8da67bfea813 -r 4b3e5a5063f9 src/proxy.c --- a/src/proxy.c Fri May 28 00:12:12 2004 +0000 +++ b/src/proxy.c Fri May 28 00:47:45 2004 +0000 @@ -690,7 +690,7 @@ if (ret == 0 && error == EINPROGRESS) return; // we'll be called again later if (ret < 0 || error != 0) { - if(ret==0) errno = error; + if(ret!=0) error = errno; close(source); gaim_input_remove(phb->inpa); @@ -704,7 +704,7 @@ g_free(phb); gaim_debug(GAIM_DEBUG_ERROR, "proxy", - "getsockopt SO_ERROR check: %s\n", strerror(errno)); + "getsockopt SO_ERROR check: %s\n", strerror(error)); return; } @@ -761,7 +761,7 @@ } else { gaim_debug(GAIM_DEBUG_ERROR, "proxy", - "Connect failed (errno %d)\n", errno); + "Connect failed: %s\n", strerror(errno)); close(fd); return -1; }