1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

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
parent 12cebbf676
commit b7cc086e00

3
ssh.c
View File

@ -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)