Adam D Ligas's segfault: one form of connection closure was failing
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 7 Jan 2001 17:18:12 +0000 (17:18 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sun, 7 Jan 2001 17:18:12 +0000 (17:18 +0000)
to set SSH_STATE_CLOSED, causing subsequent resize events to go foom.

git-svn-id: svn://svn.tartarus.org/sgt/putty@844 cda61777-01e9-0310-a592-d414129be87e

ssh.c

diff --git a/ssh.c b/ssh.c
index 8aa6437..af1a542 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -1121,6 +1121,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;