]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
sktree is indexed on the numeric value of the socket structure's
authorSimon Tatham <anakin@pobox.com>
Mon, 26 Nov 2007 21:09:54 +0000 (21:09 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 26 Nov 2007 21:09:54 +0000 (21:09 +0000)
commitc5fdb23800873a3f6a0b3bed6b9faf04df1989a0
treeb734572b9cc96c13915567e5ac0f71f90df44471
parent83138abe068cebd0de6ba3de693f42ac1f7a94dd
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: http://svn.tartarus.org/sgt/putty@7795 cda61777-01e9-0310-a592-d414129be87e
windows/winnet.c