X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/9fee0f0d916f6c3e903881fc742d35814e46dba9..2c94fd1cbf32093be173ea6c4378caa109f73dd4:/raw.c diff --git a/raw.c b/raw.c index 61a7d668..c3545803 100644 --- a/raw.c +++ b/raw.c @@ -25,6 +25,11 @@ static void c_write (char *buf, int len) { } static int raw_receive (Socket s, int urgent, char *data, int len) { + if (urgent==3) { + /* A socket error has occurred. */ + connection_fatal(data); + len = 0; + } if (!len) { /* Connection has closed. */ sk_close(s);