Return EOF when an S/MIME part have been read.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 24 Jun 2003 17:12:22 +0000 (17:12 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 24 Jun 2003 17:12:22 +0000 (17:12 +0000)
crypto/pkcs7/pk7_mime.c

index 1eaab7cbde9e881620d0bc25fffd6473d531a037..5d2a97839d2b6155449caf3e77e1d2ea433d699c 100644 (file)
@@ -403,6 +403,7 @@ static int multi_split(BIO *bio, char *bound, STACK_OF(BIO) **ret)
                                first = 0;
                                if(bpart) sk_BIO_push(parts, bpart);
                                bpart = BIO_new(BIO_s_mem());
+                               BIO_set_mem_eof_return(bpart, 0);
                        } else if (eol)
                                BIO_write(bpart, "\r\n", 2);
                        eol = next_eol;