summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);