diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2016-10-04 19:11:07 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2016-10-04 19:11:07 (GMT) |
commit | 6548fc4ad1ff7752b9dbf69a0b9a12160ee3b885 (patch) | |
tree | 4f11fdc2ff7495b044462f50914fa481095f1808 /unix | |
parent | 29b9de871c077bc29d700f3e42c7cc94df45efb7 (diff) | |
download | tcl-6548fc4ad1ff7752b9dbf69a0b9a12160ee3b885.zip tcl-6548fc4ad1ff7752b9dbf69a0b9a12160ee3b885.tar.gz tcl-6548fc4ad1ff7752b9dbf69a0b9a12160ee3b885.tar.bz2 |
[4d5ae7d88a] Stop crashes with asynchronous connects to hosts without addresses.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixSock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index 9c5cd4b..ca8d677 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) { |