зеркало из https://github.com/github/putty.git
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]
This commit is contained in:
Родитель
1f22416c3c
Коммит
eac718ee1b
1
ssh.c
1
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче