summaryrefslogtreecommitdiff
path: root/pith/smime.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/smime.c')
-rw-r--r--pith/smime.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pith/smime.c b/pith/smime.c
index 532948bf..c0253ba5 100644
--- a/pith/smime.c
+++ b/pith/smime.c
@@ -1292,7 +1292,8 @@ body_to_bio(BODY *body)
* Now need to truncate by two characters since the above
* appends CRLF.
*/
- if((len=BIO_ctrl_pending(bio)) > 1){
+ if(ps_global->smime && !ps_global->smime->do_sign
+ && (len=BIO_ctrl_pending(bio)) > 1){
BUF_MEM *biobuf = NULL;
BIO_get_mem_ptr(bio, &biobuf);