diff common-channel.c @ 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 c216212001fc
children 9c61e7af0156
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);