summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
diff options
context:
space:
mode:
authorgahr <gahr@gahr.ch>2016-09-27 20:06:49 (GMT)
committergahr <gahr@gahr.ch>2016-09-27 20:06:49 (GMT)
commitc4f7e08fc6d1d713d4e67743c14a8229aeb126e2 (patch)
tree0f918ce1f42b8983e23daf1bc162ad2e0e70f4f9 /unix/tclUnixSock.c
parent008c7038cb0a7a815bb8271b77ff761911588850 (diff)
downloadtcl-c4f7e08fc6d1d713d4e67743c14a8229aeb126e2.zip
tcl-c4f7e08fc6d1d713d4e67743c14a8229aeb126e2.tar.gz
tcl-c4f7e08fc6d1d713d4e67743c14a8229aeb126e2.tar.bz2
[4d5ae7d88a] Restore default-to-error logic in TcpConnect
Diffstat (limited to 'unix/tclUnixSock.c')
-rw-r--r--unix/tclUnixSock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index 8167077..3942df8 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -1098,7 +1098,7 @@ TcpConnect(
{
socklen_t optlen;
int async_callback = statePtr->flags & TCP_ASYNC_PENDING;
- int ret = -1, error = errno;
+ int ret = -1, error = EHOSTUNREACH;
int async = statePtr->flags & TCP_ASYNC_CONNECT;
if (async_callback) {