From b7cc086e00d1801f77a10e882d4ce71f43498ec3 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 25 May 2016 23:06:20 +0100 Subject: [PATCH] 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. --- ssh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ssh.c b/ssh.c index 9ab1d771..48116ccd 100644 --- a/ssh.c +++ b/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)