mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +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:
parent
bc48975ce5
commit
d8eff1070d
1
ssh.c
1
ssh.c
@ -8207,6 +8207,7 @@ static void ssh2_channel_check_close(struct ssh_channel *c)
|
|||||||
Ssh ssh = c->ssh;
|
Ssh ssh = c->ssh;
|
||||||
struct Packet *pktout;
|
struct Packet *pktout;
|
||||||
|
|
||||||
|
assert(ssh->version == 2);
|
||||||
if (c->halfopen) {
|
if (c->halfopen) {
|
||||||
/*
|
/*
|
||||||
* If we've sent out our own CHANNEL_OPEN but not yet seen
|
* If we've sent out our own CHANNEL_OPEN but not yet seen
|
||||||
|
Loading…
Reference in New Issue
Block a user