# HG changeset patch # User Matt Johnston # Date 1222171381 0 # Node ID cd02449b709cb042a4933f469c2eb92941b9a552 # Parent 66eac4631d8833632a5d41a331837d44cba773b0 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. diff -r 66eac4631d88 -r cd02449b709c common-channel.c --- a/common-channel.c Mon Sep 22 15:47:35 2008 +0000 +++ b/common-channel.c Tue Sep 23 12:03:01 2008 +0000 @@ -572,6 +572,11 @@ 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 {