From d8eff1070d6e4582a05cb4db67759fb0e3ad8f4b Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 22 May 2016 13:50:34 +0100 Subject: [PATCH] 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(). --- ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh.c b/ssh.c index df303b7b..a790f717 100644 --- a/ssh.c +++ b/ssh.c @@ -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