summaryrefslogtreecommitdiff
path: root/pith
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2014-02-20 00:06:05 -0700
committerEduardo Chappa <chappa@washington.edu>2014-02-20 00:06:05 -0700
commitac368b05842ee45ed29cd997840eb788649da268 (patch)
tree181c462df69f970e1bba253dc2d6726c723412d7 /pith
parent59499e8d9d98e63b0ccf3d731528c24c652ad501 (diff)
downloadalpine-ac368b05842ee45ed29cd997840eb788649da268.tar.xz
* New version 2.19.8
* Forwarding messages with attachments of content-type multipart, failed when attempting to signed it, with and "Error writing pipe" error.
Diffstat (limited to 'pith')
-rw-r--r--pith/pine.hlp5
-rw-r--r--pith/smime.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/pith/pine.hlp b/pith/pine.hlp
index 147e30d3..66299dfa 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any
reasonable place to be called from.
Dummy change to get revision in pine.hlp
============= h_revision =================
-Alpine Commit 46 2014-02-17 01:15:10
+Alpine Commit 47 2014-02-20 00:06:00
============= h_news =================
<HTML>
<HEAD>
@@ -244,6 +244,9 @@ Bugs that have been addressed include:
<LI> S/MIME: signed and encrypted messages from Thunderbird would not
validate. Thanks to Andreas Schamanek for testing, debugging and
advising during the process of fixing this problem.
+ <LI> S/MIME: Forwarding messages with multipart content-type failed to be signed
+ with &quot;Error writing pipe&quot; message. Reported by Andreas Schamanek
+ and Stefan Mueller.
<LI> Crash when tcp connection to NNTP server was lost after connection
had been established, but lost immediately afterwards.
<LI> WebAlpine: add _GNU_SOURCE to make pubcookie build.
diff --git a/pith/smime.c b/pith/smime.c
index 9d588479..469a381e 100644
--- a/pith/smime.c
+++ b/pith/smime.c
@@ -1113,7 +1113,9 @@ rfc822_output_func(void *b, char *string)
{
BIO *bio = (BIO *) b;
- return((BIO_puts(bio, string) > 0) ? 1L : 0L);
+ return(string ? *string ? (BIO_puts(bio, string) > 0 ? 1L : 0L)
+ : (BIO_puts(bio, string) >= 0 ? 1L : 0L)
+ : 0L);
}