diff options
author | Eduardo Chappa <chappa@washington.edu> | 2014-02-20 00:06:05 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2014-02-20 00:06:05 -0700 |
commit | ac368b05842ee45ed29cd997840eb788649da268 (patch) | |
tree | 181c462df69f970e1bba253dc2d6726c723412d7 /pith/smime.c | |
parent | 59499e8d9d98e63b0ccf3d731528c24c652ad501 (diff) | |
download | alpine-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/smime.c')
-rw-r--r-- | pith/smime.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |