Mercurial > dropbear
changeset 439:ab370c629d36 DROPBEAR_0.49
Fix a stupid bug s/readfd/errfd/ affecting channel close on child exit
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 22 Feb 2007 16:17:09 +0000 |
parents | 4bfd22bac1dc |
children | 91939c8c2572 |
files | common-channel.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/common-channel.c Thu Feb 22 15:51:15 2007 +0000 +++ b/common-channel.c Thu Feb 22 16:17:09 2007 +0000 @@ -296,7 +296,7 @@ TRACE(("send data readfd")) send_msg_channel_data(channel, 0); } - if (ERRFD_IS_READ(channel) && channel->readfd >= 0 + if (ERRFD_IS_READ(channel) && channel->errfd >= 0 && channel->transwindow > 0) { TRACE(("send data errfd")) send_msg_channel_data(channel, 1);