]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/commit
Reliably initialise uxnet's socket fd fields to -1.
authorSimon Tatham <anakin@pobox.com>
Sun, 17 Nov 2013 14:04:33 +0000 (14:04 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 17 Nov 2013 14:04:33 +0000 (14:04 +0000)
commitff246465277f9f43822854124cf8af5324d902b4
tree834b89a371c7e001066e625aee10ce4f736cb0a1
parent74bd5355cfb92583e229355a0458827e4ce34561
Reliably initialise uxnet's socket fd fields to -1.

This prevents embarrassing mess-ups involving getting back a Socket
which has mostly been memset to 0 but contains an error message,
sk_close()ing it to free the memory, and finding that standard input
has been closed as a side effect.

git-svn-id: http://svn.tartarus.org/sgt/putty@10073 cda61777-01e9-0310-a592-d414129be87e
unix/uxnet.c