summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch b/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch
new file mode 100644
index 0000000..e9fa44b
--- a/dev/null
+++ b/noncore/net/mail/libetpanstuff/libetpan-0.32-mailstream_fix.patch
@@ -0,0 +1,12 @@
+diff -ru libetpan-0.32/tools/mailstream_helper.c libetpan-0.32_fixed/tools/mailstream_helper.c
+--- libetpan-0.32/tools/mailstream_helper.c 2003-12-15 04:33:58.000000000 +0100
++++ libetpan-0.32_fixed/tools/mailstream_helper.c 2003-12-23 02:28:20.000000000 +0100
+@@ -352,7 +352,7 @@
+ current = message;
+ remaining = size;
+
+- while (remaining > 0) {
++ while (remaining > 0 && remaining<=size) {
+ ssize_t length;
+
+ length = send_data_line(s, current, remaining);