diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2008-11-21 18:18:13 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2008-11-21 18:18:13 +0000 |
commit | d0c36288341ca75328eeb4cc33bce6a7d3f65c51 (patch) | |
tree | f458cffd47971ad5c3341c75d2ad41c04e4a910c /crypto/cms/cms_smime.c | |
parent | 31636a3ed1bc795656c8764cffec273454827776 (diff) |
Set memory BIOs up properly when stripping text headers from S/MIME messages.
Diffstat (limited to 'crypto/cms/cms_smime.c')
-rw-r--r-- | crypto/cms/cms_smime.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/cms/cms_smime.c b/crypto/cms/cms_smime.c index dec8ef32f8..f754b3ce4f 100644 --- a/crypto/cms/cms_smime.c +++ b/crypto/cms/cms_smime.c @@ -68,7 +68,10 @@ static int cms_copy_content(BIO *out, BIO *in, unsigned int flags) if (out == NULL) tmpout = BIO_new(BIO_s_null()); else if (flags & CMS_TEXT) + { tmpout = BIO_new(BIO_s_mem()); + BIO_set_mem_eof_return(tmpout, 0); + } else tmpout = out; |