1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00
putty-source/otherbackends
Simon Tatham 07911c8735 Prevent sending double-EOF in raw backend.
You can't call sk_write_eof() twice on the same socket, because the
second one will fail an assertion. Instead, you're supposed to know
you've already sent EOF, and not try to send it again.

The call to sk_write_eof() in raw_special (triggered by pressing ^D in
GUI PuTTY, for example) sets the flag raw->sent_socket_eof in an
attempt to prevent this. But it doesn't _check_ that flag, so a second
press of ^D can reach that assertion failure.

(cherry picked from commit 9f2e1e6e03)
2023-04-19 14:28:36 +01:00
..
CMakeLists.txt Move other backends into a subdirectory. 2021-04-22 18:24:15 +01:00
raw.c Prevent sending double-EOF in raw backend. 2023-04-19 14:28:36 +01:00
rlogin.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
supdup.c Comment typo in supdup.c. 2022-08-03 20:48:46 +01:00
telnet.c Formatting: miscellaneous. 2022-08-03 20:48:46 +01:00
testback.c Resurrect the test backends. 2022-04-02 16:13:27 +01:00