]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - ssh.c
Further work on writing the manual
[PuTTY.git] / ssh.c
diff --git a/ssh.c b/ssh.c
index a4e45cd8ecde46c5a4852f1f9db1ec18de555b55..26b26c327f45827cc06f78357a2456392ce7b078 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -1124,6 +1124,7 @@ static void ssh_gotdata(unsigned char *data, int datalen)
 static int ssh_receive(Socket skt, int urgent, char *data, int len) {
     if (!len) {
        /* Connection has closed. */
+       ssh_state = SSH_STATE_CLOSED;
        sk_close(s);
        s = NULL;
        return 0;