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:
Simon Tatham 2001-01-07 17:18:12 +00:00
Родитель 1f22416c3c
Коммит eac718ee1b
1 изменённых файлов: 1 добавлений и 0 удалений

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;