From a2d30cd34431120e7e2da2c5166f225c2a10b442 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 4 Feb 2006 23:12:51 +0000 Subject: [PATCH] Fixed writechannel bug as described in ticket in #246, now closed git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3131 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/dropbear/patches/160-writechannel.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/dropbear/patches/160-writechannel.patch diff --git a/package/dropbear/patches/160-writechannel.patch b/package/dropbear/patches/160-writechannel.patch new file mode 100644 index 000000000..0e84a9953 --- /dev/null +++ b/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")) -- 2.35.1