]> asedeno.scripts.mit.edu Git - PuTTY.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)
commit489590cbd434facbb800e66a78a840f185ed7496
tree834b89a371c7e001066e625aee10ce4f736cb0a1
parent6f6e9db932589470975ecc23261cd57eb9e710be
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.

[originally from svn r10073]
unix/uxnet.c