From 62d792fbdc61fc5c8528a9b7e601e4181e2211be Mon Sep 17 00:00:00 2001
From: Matt Johnston <matt@ucc.asn.au>
Date: Thu, 22 Feb 2007 16:17:09 +0000
Subject: [PATCH] Fix a stupid bug s/readfd/errfd/ affecting channel close on
 child exit

--HG--
extra : convert_revision : 16dd04147563e91faaa44de193dece0f4056ec7a
---
 common-channel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common-channel.c b/common-channel.c
index 34316b4c..d77a575d 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);
-- 
GitLab