From b98d13effb635f0f0ad76b05c2e7616f3e99305a Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 23 Sep 2008 12:03:01 +0000 Subject: [PATCH] Don't send anything in response to a SSH_MSG_CHANNEL_REQUEST if we have already sent a SSH_MSG_CHANNEL_CLOSE. This fixes a bug triggered by more recent versions of putty with tcp fowarding and window adjustment request messages. --HG-- extra : convert_revision : 10b2f286b9886364db39dfbb4f8f46e49e345d87 --- common-channel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common-channel.c b/common-channel.c index 09fe425..2105184 100644 --- a/common-channel.c +++ b/common-channel.c @@ -572,6 +572,11 @@ void recv_msg_channel_request() { channel = getchannel(); + if (channel->sent_close) { + TRACE(("leave recv_msg_channel_request: already closed channel")) + return; + } + if (channel->type->reqhandler) { channel->type->reqhandler(channel); } else {