diff options
author | Matt Johnston <matt@ucc.asn.au> | 2007-02-22 16:17:09 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2007-02-22 16:17:09 +0000 |
commit | e2644454f77a6783612b9daeff9152bc476598a1 (patch) | |
tree | e5b442ed2bb926bb1b1299f19e116536ea77db78 | |
parent | 4051b2bcf538bc84f96d76db873260d2e254013c (diff) | |
download | dropbear-e2644454f77a6783612b9daeff9152bc476598a1.tar.gz |
Fix a stupid bug s/readfd/errfd/ affecting channel close on child exitDROPBEAR_0.49
-rw-r--r-- | common-channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common-channel.c b/common-channel.c index 34316b4..d77a575 100644 --- a/common-channel.c +++ b/common-channel.c @@ -296,7 +296,7 @@ static void check_close(struct Channel *channel) { 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); |