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)
commit2b5841cce3dace5f052236b0f3770263222d426d (patch)
tree8ed38b0ddfc9074ff307d810813202d03087e433 /win
parentefceec946be8872457431044b999386f58a44581 (diff)
downloadtcl-2b5841cce3dace5f052236b0f3770263222d426d.zip
tcl-2b5841cce3dace5f052236b0f3770263222d426d.tar.gz
tcl-2b5841cce3dace5f052236b0f3770263222d426d.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;