comparison common-channel.c @ 495:cd02449b709c

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.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 23 Sep 2008 12:03:01 +0000
parents 0871a0b89f7c
children 950c38b854a1
comparison
equal deleted inserted replaced
494:66eac4631d88 495:cd02449b709c
570 570
571 TRACE(("enter recv_msg_channel_request")) 571 TRACE(("enter recv_msg_channel_request"))
572 572
573 channel = getchannel(); 573 channel = getchannel();
574 574
575 if (channel->sent_close) {
576 TRACE(("leave recv_msg_channel_request: already closed channel"))
577 return;
578 }
579
575 if (channel->type->reqhandler) { 580 if (channel->type->reqhandler) {
576 channel->type->reqhandler(channel); 581 channel->type->reqhandler(channel);
577 } else { 582 } else {
578 send_msg_channel_failure(channel); 583 send_msg_channel_failure(channel);
579 } 584 }