]> asedeno.scripts.mit.edu Git - PuTTY.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)
commit712b4689c8e69f936b0fa8706bee9449c2db1ca9
treeb734572b9cc96c13915567e5ac0f71f90df44471
parent868208b8bd7f0740197a53ea0a2acb7b94534835
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.

[originally from svn r7795]
windows/winnet.c