2007-08-12 00:53:15 +03:00
|
|
|
Index: dropbear-0.50/common-channel.c
|
2007-06-04 14:25:53 +03:00
|
|
|
===================================================================
|
2007-08-12 00:53:15 +03:00
|
|
|
--- dropbear-0.50.orig/common-channel.c 2007-08-10 23:47:47.000000000 +0200
|
|
|
|
+++ dropbear-0.50/common-channel.c 2007-08-10 23:47:50.000000000 +0200
|
|
|
|
@@ -311,10 +311,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);
|