summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorashok <ashok>2014-12-06 11:19:32 (GMT)
committerashok <ashok>2014-12-06 11:19:32 (GMT)
commit58bde2cb77be95dfc210c6b7448b9c82cf140025 (patch)
tree8ed38b0ddfc9074ff307d810813202d03087e433 /win
parent40420634aa8529da78c90eb912b341c7eb239591 (diff)
downloadtcl-58bde2cb77be95dfc210c6b7448b9c82cf140025.zip
tcl-58bde2cb77be95dfc210c6b7448b9c82cf140025.tar.gz
tcl-58bde2cb77be95dfc210c6b7448b9c82cf140025.tar.bz2
Potential fix for [c6ed4acfd8].
Simple typo in original fix for [336441ed59]. Was looping on statePtr->next instead of statePtr2->next. Would result in an infinite loop. Definitely a bug but whether it completely fixes the above in all cases needs to be tested.
Diffstat (limited to 'win')
-rw-r--r--win/tclWinSock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index 2c58224..f5658ba 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.c
@@ -1739,7 +1739,7 @@ TcpConnect(
*/
for (statePtr2 = tsdPtr->socketList; statePtr2 != NULL;
- statePtr2 = statePtr->nextPtr) {
+ statePtr2 = statePtr2->nextPtr) {
if (statePtr2 == statePtr) {
in_socket_list = 1;
break;