]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Windows handle sockets: fix error handling in sentdata().
authorSimon Tatham <anakin@pobox.com>
Wed, 22 Feb 2017 21:57:04 +0000 (21:57 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 22 Feb 2017 21:57:04 +0000 (21:57 +0000)
commit51732faeb913527f3373e3c77bf66ca414e5bab6
tree453c5917ebe83962cefae394e381127cbd3a9af7
parent86b604dd65679d983c06012b377e41c927da3cd6
Windows handle sockets: fix error handling in sentdata().

In the sentdata callback function given to handle_output_new, the
'new_backlog' parameter can be negative, and if so, it represents a
Windows error code and not a backlog size at all. handle_sentdata was
not checking for this before passing it on to plug_sent.
windows/winhsock.c