summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2014-03-10 16:59:09 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2014-03-10 16:59:09 (GMT)
commit138267abe275e454e892fe55ad5f3e16fd032278 (patch)
tree5d3628973eef2f1995de0e8955d9c13ed21f60f0 /win
parentad589d66e2f1ec13f0ba2c482bd70547aaec8fba (diff)
downloadtcl-138267abe275e454e892fe55ad5f3e16fd032278.zip
tcl-138267abe275e454e892fe55ad5f3e16fd032278.tar.gz
tcl-138267abe275e454e892fe55ad5f3e16fd032278.tar.bz2
Additional security for wrong pointer
Diffstat (limited to 'win')
-rw-r--r--win/tclWinSock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index 01a0f6f..d8b9129 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.c
@@ -1379,6 +1379,12 @@ CreateClientSocket(
#ifdef DEBUGGING
fprintf(stderr, "lastError: %d\n", Tcl_GetErrno());
#endif
+ /*
+ * Clear the tsd socket list pointer if we did not wait for
+ * the FD_CONNECT asyncroneously
+ */
+ tsdPtr->pendingSocketInfo = NULL;
+
if (Tcl_GetErrno() == 0) {
goto out;
}