]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
uxproxy: fix write error handling on outgoing pipe.
authorSimon Tatham <anakin@pobox.com>
Wed, 22 Feb 2017 21:51:03 +0000 (21:51 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 22 Feb 2017 21:51:03 +0000 (21:51 +0000)
commit86b604dd65679d983c06012b377e41c927da3cd6
tree4080004176f34e1d0cf9b1cd50c821cb8f54f76a
parent9ce982622f9ab07b85cbb06d06f53b71fb9558a9
uxproxy: fix write error handling on outgoing pipe.

Jacob pointed out the other day that the call to logevent with NULL
frontend handle can't possibly work, and the comment next to it saying
that it can is an outright lie (probably thoughtlessly copied from
some part of the Windows front end, where it actually would be true).
Furthermore, even if that logevent call didn't dereference NULL and
segfault, the followup call to fatalbox() would be inappropriate,
since proxied connections need not be the primary network connection
of the whole process.

Rewritten as a call to plug_closing, which is the proper channel
through which to report errors on an individual socket or equivalent.
unix/uxproxy.c