1 Index: dropbear-0.49/common-channel.c
2 ===================================================================
3 --- dropbear-0.49.orig/common-channel.c 2007-06-04 13:21:39.354993800 +0200
4 +++ dropbear-0.49/common-channel.c 2007-06-04 13:21:40.676792856 +0200
6 send_msg_channel_eof(channel);
9 - /* And if we can't receive any more data from them either, close up */
10 + /* And if we can't receive any more data from them either, close up (server only) */
11 if (!channel->sent_close
12 && channel->readfd == FD_CLOSED
13 - && (ERRFD_IS_WRITE(channel) || channel->errfd == FD_CLOSED)
14 + && !ERRFD_IS_WRITE(channel)
15 && !write_pending(channel)) {
16 TRACE(("sending close, readfd is closed"))
17 send_msg_channel_close(channel);