comparison 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
comparison
equal deleted inserted replaced
438:4bfd22bac1dc 439:ab370c629d36
294 TRACE(("might send data, flushing")) 294 TRACE(("might send data, flushing"))
295 if (channel->readfd >= 0 && channel->transwindow > 0) { 295 if (channel->readfd >= 0 && channel->transwindow > 0) {
296 TRACE(("send data readfd")) 296 TRACE(("send data readfd"))
297 send_msg_channel_data(channel, 0); 297 send_msg_channel_data(channel, 0);
298 } 298 }
299 if (ERRFD_IS_READ(channel) && channel->readfd >= 0 299 if (ERRFD_IS_READ(channel) && channel->errfd >= 0
300 && channel->transwindow > 0) { 300 && channel->transwindow > 0) {
301 TRACE(("send data errfd")) 301 TRACE(("send data errfd"))
302 send_msg_channel_data(channel, 1); 302 send_msg_channel_data(channel, 1);
303 } 303 }
304 } 304 }