summaryrefslogtreecommitdiff
path: root/openwrt
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-02-04 23:12:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-02-04 23:12:51 +0000
commit7fbe0ed3f81f21d71a77b9b8e9cf52b0c3735dbf (patch)
tree0b1dc8881b41ec9846042f20e6ba991e90d738c3 /openwrt
parent4439059ff1d426cb347c922df476be9277568653 (diff)
downloadmtk-20170518-7fbe0ed3f81f21d71a77b9b8e9cf52b0c3735dbf.zip
mtk-20170518-7fbe0ed3f81f21d71a77b9b8e9cf52b0c3735dbf.tar.gz
mtk-20170518-7fbe0ed3f81f21d71a77b9b8e9cf52b0c3735dbf.tar.bz2
Fixed writechannel bug as described in ticket in #246, now closed
SVN-Revision: 3131
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/package/dropbear/patches/160-writechannel.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/openwrt/package/dropbear/patches/160-writechannel.patch b/openwrt/package/dropbear/patches/160-writechannel.patch
new file mode 100644
index 0000000..0e84a99
--- /dev/null
+++ b/openwrt/package/dropbear/patches/160-writechannel.patch
@@ -0,0 +1,12 @@
+diff -urN dropbear-0.47.orig/common-channel.c dropbear-0.47/common-channel.c
+--- dropbear-0.47.orig/common-channel.c 2005-12-09 06:42:31.000000000 +0100
++++ dropbear-0.47/common-channel.c 2006-02-05 00:03:37.000000000 +0100
+@@ -377,7 +377,7 @@
+ cbuf_incrread(cbuf, len);
+ channel->recvdonelen += len;
+
+- if (fd == channel->writefd && len == maxlen && channel->recveof) {
++ if (fd == channel->writefd && len == maxlen && channel->recveof && cbuf_getused(channel->writebuf) == 0) {
+ /* Check if we're closing up */
+ closewritefd(channel);
+ TRACE(("leave writechannel: recveof set"))