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)
commit93b5865bd7cf7a93bd9c8aa6719edba1101992f2 (patch)
tree0f918ce1f42b8983e23daf1bc162ad2e0e70f4f9 /unix/tclUnixSock.c
parentfd93cadcf5c47961179aaaf12f13cfdcaa391c7f (diff)
downloadtcl-93b5865bd7cf7a93bd9c8aa6719edba1101992f2.zip
tcl-93b5865bd7cf7a93bd9c8aa6719edba1101992f2.tar.gz
tcl-93b5865bd7cf7a93bd9c8aa6719edba1101992f2.tar.bz2
[4d5ae7d88a] Restore default-to-error logic in TcpConnecttkt_4d5ae7d88a
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) {