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

Assert that ssh2_channel_check_close() is only called in SSH-2.

That really should be true, but I don't entirely trust
sshfwd_unclean_close().
This commit is contained in:
Ben Harris 2016-05-22 13:50:34 +01:00
parent bc48975ce5
commit d8eff1070d

1
ssh.c
View File

@ -8207,6 +8207,7 @@ static void ssh2_channel_check_close(struct ssh_channel *c)
Ssh ssh = c->ssh;
struct Packet *pktout;
assert(ssh->version == 2);
if (c->halfopen) {
/*
* If we've sent out our own CHANNEL_OPEN but not yet seen