diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | win/tclWinSock.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2005-11-28 Donal K. Fellows <donal.k.fellows@man.ac.uk> + + * win/tclWinSock.c (CreateSocket): Applied [Patch 1353853] to prevent + reads of uninitialized variables during cleanup. + 2005-11-27 Daniel Steffen <das@users.sourceforge.net> * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(), diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 9af7d3e..6643345 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclWinSock.c,v 1.36.2.3 2005/01/27 22:53:39 andreas_kupries Exp $ + * RCS: @(#) $Id: tclWinSock.c,v 1.36.2.4 2005/11/28 09:49:57 dkf Exp $ */ #include "tclWinInt.h" @@ -1088,7 +1088,7 @@ CreateSocket(interp, port, host, server, myaddr, myport, async) * in progress. */ SOCKADDR_IN sockaddr; /* Socket address */ SOCKADDR_IN mysockaddr; /* Socket address for client */ - SOCKET sock; + SOCKET sock = INVALID_SOCKET; SocketInfo *infoPtr; /* The returned value. */ ThreadSpecificData *tsdPtr = (ThreadSpecificData *)TclThreadDataKeyGet(&dataKey); |