1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

Ensure all backends _remember_ the connection has closed after

receiving a network error. Should prevent the cascading-error-box
bug.

[originally from svn r900]
This commit is contained in:
Simon Tatham
2001-01-26 12:22:16 +00:00
parent 0d0c8a5e2e
commit 62a76699ad
4 changed files with 8 additions and 3 deletions

2
ssh.c
View File

@ -1151,6 +1151,8 @@ static void ssh_gotdata(unsigned char *data, int datalen)
static int ssh_receive(Socket skt, int urgent, char *data, int len) {
if (urgent==3) {
/* A socket error has occurred. */
ssh_state = SSH_STATE_CLOSED;
s = NULL;
connection_fatal(data);
len = 0;
}