X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9fee0f0d916f6c3e903881fc742d35814e46dba9..2c94fd1cbf32093be173ea6c4378caa109f73dd4:/ssh.c diff --git a/ssh.c b/ssh.c index ee320afc..3845264c 100644 --- a/ssh.c +++ b/ssh.c @@ -1148,6 +1148,11 @@ 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. */ + connection_fatal(data); + len = 0; + } if (!len) { /* Connection has closed. */ ssh_state = SSH_STATE_CLOSED;