sktree is indexed on the numeric value of the socket structure's
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 26 Nov 2007 21:09:54 +0000 (21:09 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 26 Nov 2007 21:09:54 +0000 (21:09 +0000)
commitb34544ba9fc10ac0b613c7aa41930f82498612cf
treeb734572b9cc96c13915567e5ac0f71f90df44471
parent7c44631523b894e0126383602126b6e85b549e09
sktree is indexed on the numeric value of the socket structure's
underlying WinSock SOCKET. Therefore, if we plan to modify the
SOCKET in a socket, we must remove it from the tree before doing so,
and put it back again afterwards. Otherwise it'll violate the tree's
sorting order, and sooner or later someone will try to find it and
get back NULL.

git-svn-id: svn://svn.tartarus.org/sgt/putty@7795 cda61777-01e9-0310-a592-d414129be87e
windows/winnet.c