From 7a67dca709b7a7aab210801c17946de20d2be151 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 7 Jan 2001 17:18:12 +0000 Subject: [PATCH] Adam D Ligas's segfault: one form of connection closure was failing 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh.c b/ssh.c index 8aa6437d..af1a5426 100644 --- 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; -- 2.11.0