summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2007-02-22 16:17:09 +0000
committerMatt Johnston <matt@ucc.asn.au>2007-02-22 16:17:09 +0000
commite2644454f77a6783612b9daeff9152bc476598a1 (patch)
treee5b442ed2bb926bb1b1299f19e116536ea77db78
parent4051b2bcf538bc84f96d76db873260d2e254013c (diff)
downloaddropbear-e2644454f77a6783612b9daeff9152bc476598a1.tar.gz
Fix a stupid bug s/readfd/errfd/ affecting channel close on child exitDROPBEAR_0.49
-rw-r--r--common-channel.c2
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);