2007-06-04 14:25:53 +03:00
|
|
|
Index: dropbear-0.49/common-channel.c
|
|
|
|
===================================================================
|
|
|
|
--- dropbear-0.49.orig/common-channel.c 2007-06-04 13:21:39.354993800 +0200
|
|
|
|
+++ dropbear-0.49/common-channel.c 2007-06-04 13:21:40.676792856 +0200
|
|
|
|
@@ -310,10 +310,10 @@
|
2007-05-06 20:53:16 +03:00
|
|
|
send_msg_channel_eof(channel);
|
|
|
|
}
|
2007-06-04 14:25:53 +03:00
|
|
|
|
2007-05-06 20:53:16 +03:00
|
|
|
- /* And if we can't receive any more data from them either, close up */
|
2007-05-09 22:15:37 +03:00
|
|
|
+ /* And if we can't receive any more data from them either, close up (server only) */
|
2007-06-04 14:25:53 +03:00
|
|
|
if (!channel->sent_close
|
|
|
|
&& channel->readfd == FD_CLOSED
|
|
|
|
- && (ERRFD_IS_WRITE(channel) || channel->errfd == FD_CLOSED)
|
2007-05-09 22:15:37 +03:00
|
|
|
+ && !ERRFD_IS_WRITE(channel)
|
2007-06-04 14:25:53 +03:00
|
|
|
&& !write_pending(channel)) {
|
|
|
|
TRACE(("sending close, readfd is closed"))
|
|
|
|
send_msg_channel_close(channel);
|