[openssl-commits] [openssl] OpenSSL_1_0_2-stable update

Matt Caswell matt at openssl.org
Wed Jan 24 18:29:25 UTC 2018


The branch OpenSSL_1_0_2-stable has been updated
       via  d19bf137ba24ce15ceb1e37e0093f1b7242340f1 (commit)
      from  8552d91856895960d00343972613ce5c296864b7 (commit)


- Log -----------------------------------------------------------------
commit d19bf137ba24ce15ceb1e37e0093f1b7242340f1
Author: Todd Short <tshort at akamai.com>
Date:   Mon Jan 22 14:30:24 2018 -0500

    Fix error-path memory leak in asn_mime.c
    
    Reviewed-by: Bernd Edlinger <bernd.edlinger at hotmail.de>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5142)
    
    (cherry picked from commit a26dd465b21d8def440c16b6bd90227b03e12e02)

-----------------------------------------------------------------------

Summary of changes:
 crypto/asn1/asn_mime.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/asn1/asn_mime.c b/crypto/asn1/asn_mime.c
index 5170906..e5bdaa6 100644
--- a/crypto/asn1/asn_mime.c
+++ b/crypto/asn1/asn_mime.c
@@ -473,6 +473,7 @@ ASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it)
         if (!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
             sk_MIME_HEADER_pop_free(headers, mime_hdr_free);
             ASN1err(ASN1_F_SMIME_READ_ASN1, ASN1_R_NO_SIG_CONTENT_TYPE);
+            sk_BIO_pop_free(parts, BIO_vfree);
             return NULL;
         }
 


More information about the openssl-commits mailing list