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:
Ben Harris 2016-05-25 23:06:20 +01:00
Родитель 12cebbf676
Коммит b7cc086e00
1 изменённых файлов: 1 добавлений и 2 удалений

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)