From eac718ee1bef7e1d5055aafc674ac3db1527a876 Mon Sep 17 00:00:00 2001 From: Simon Tatham 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. [originally from svn r844] --- 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;