зеркало из https://github.com/github/putty.git
Move call to ssh2_channnel_check_close().
From ssh2_channel_got_eof() to ssh2_msg_channel_eof(). This removes the only SSH-2 specicifity from the former. ssh2_channel_got_eof() can also be called from ssh2_msg_channel_close(), but that calls ssh2_channel_check_close() already.
This commit is contained in:
Родитель
12cebbf676
Коммит
b7cc086e00
3
ssh.c
3
ssh.c
|
@ -8267,8 +8267,6 @@ static void ssh2_channel_got_eof(struct ssh_channel *c)
|
|||
}
|
||||
ssh->sent_console_eof = TRUE;
|
||||
}
|
||||
|
||||
ssh2_channel_check_close(c);
|
||||
}
|
||||
|
||||
static void ssh2_msg_channel_eof(Ssh ssh, struct Packet *pktin)
|
||||
|
@ -8279,6 +8277,7 @@ static void ssh2_msg_channel_eof(Ssh ssh, struct Packet *pktin)
|
|||
if (!c)
|
||||
return;
|
||||
ssh2_channel_got_eof(c);
|
||||
ssh2_channel_check_close(c);
|
||||
}
|
||||
|
||||
static void ssh2_msg_channel_close(Ssh ssh, struct Packet *pktin)
|
||||
|
|
Загрузка…
Ссылка в новой задаче